code: def fill_rect(framebuf, x, y, width, height, color):
          
          # pylint: disable=too-many-arguments
          for _x in range(x, x+width):
              offset = 7 - _x & 0x07
              for _y in range(y, y+height):
                  index = (_y * framebuf.stride + _x) // 8
                  framebuf.buf[index] = (framebuf.buf[index] & ~(0x01 << offset)) \
                                        | ((color != 0) << offset)
docs: Draw a rectangle at the given location, size and color. The ``fill_rect`` method draws
          both the outline and interior.