Gambas Documentation - /comp/gb.sdl2/draw/fillrect

/comp/gb.sdl2/draw/fillrect

# Draw.FillRect (gb.sdl2)

Static Sub FillRect ( X As Integer, Y As Integer, Width As Integer, Height As Integer [ , Color As Integer ] )

Fill a rectangle on the current drawing device with the specified color.

- X, Y : the position of the top-left corner of the rectangle.

- Width : the rectangle width.

- Height : the rectangle height.

- Color : the color of the rectangle. If it is not specified, the FillRect color is used.