Surface.fillRect - multiple declarations
Function Surface.fillRect
Wraps SDL_FillRect which draws a filled rectangle in the dsdl with specifying a pixel color value
Parameters
| Name | Description |
|---|---|
| rect | dsdl specifying the position and size |
| pixel | pixel value of the color to fill the rectangle |
Throws
dsdl if rectangle failed to draw
Function Surface.fillRect
Wraps SDL_FillRect which draws a filled rectangle in the dsdl with specifying a dsdl value
Parameters
| Name | Description |
|---|---|
| rect | dsdl specifying the position and size |
| color | dsdl of the color to fill the rectangle |
Throws
dsdl if rectangle failed to draw