rect

inline fun CommonCanvas.rect(rectangle: Rectangle, color: Color)

Fills a rectangle.

Parameters

rectangle

to draw

color

to fill with


inline fun CommonCanvas.rect(rectangle: Rectangle, stroke: Stroke, color: Color)

Fills and outlines a rectangle.

Parameters

rectangle

to draw

stroke

to outline with

color

to fill with


inline fun CommonCanvas.rect(rectangle: Rectangle, radius: Double, color: Color)

Fills a rounded rectangle.

Parameters

rectangle

to draw

radius

for corners

color

to fill with


inline fun CommonCanvas.rect(rectangle: Rectangle, radius: Double, stroke: Stroke, color: Color)

Fills and outlines a rounded rectangle.

Parameters

rectangle

to draw

radius

for corners

stroke

to outline with

color

to fill with