Menu

FDdrawrect

Anonymous

Details

Draw a rectangle at with its upper left corner at the given point with the given width and height. The rectangle may be optionally filled if a fill color is passed given.

Use

draw_rect(x0,y0,width,height,color,fillcolor) or draw_rect(x0,y0,width,height,color)

  • Arguments:
    • uint8_t x0:
    • The x coordinate of upper left corner of the rectangle.
    • uint8_t y0:
    • The y coordinate of upper left corner of the rectangle.
    • uint8_t width:
    • The widht of the rectangle.
    • uint8_t height:
    • The height of the rectangle.
    • char color:
    • The color of the rectangle.
      • WHITE = 1
      • BLACK = 0
      • INVERT = 2
    • char fillcolor:
    • The fill color of the rectangle.
      • WHITE = 1
      • BLACK = 0
      • INVERT = 2
      • NOFILL = -1 (default)

Related

Wiki: FDBasicGFX
Wiki: FDcomplete
Wiki: TableOfContents
Wiki: Update

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.