ImageManager.drawRectangle

Draws a rectangle.

class ImageManager
final
bool
drawRectangle
(
ptrdiff_t x
,
ptrdiff_t y
,
ptrdiff_t width
,
ptrdiff_t height
,,
bool fill = false
)

Parameters

x ptrdiff_t

The x coordinate.

y ptrdiff_t

The y coordinate.

width ptrdiff_t

The width.

height ptrdiff_t

The height.

color Color

The color.

fill bool

(optional) (default = false) Boolean determining whether the rectangle's colors should fill.

Return Value

Type: bool

True if the action was successfully executed, false otherwise.

Meta