CanvasItem.drawRect

Draws a rectangle. If filled is true, the rectangle will be filled with the color specified. If filled is false, the rectangle will be drawn as a stroke with the color and width specified. If antialiased is true, the lines will be antialiased. Note: width and antialiased are only effective if filled is false.

struct CanvasItem
@nogc nothrow
void
drawRect
(
in Rect2 rect
,
in Color color
,
in bool filled = true
,
in double width = 1
,
in bool antialiased = false
)

Meta