Name
sdl.RenderFillRect -- draw filled rectangle
Synopsis
sdl.RenderFillRect(display[, x, y, w, h])
Function
Use this function to fill a rectangle on the current rendering target. If you leave out the optional arguments, the whole rendering target will be filled.

The current drawing color is set by sdl.SetRenderDrawColor(), and the color's alpha value is ignored unless blending is enabled with the appropriate call to sdl.SetRenderDrawBlendMode().

Inputs
display
identifier of display whose renderer should be used
x
optional: the x coordinate of the upper left corner
y
optional: the y coordinate of the upper left corner
w
optional: the rectangle width
h
optional: the rectangle height

Show TOC