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