rect

abstract fun rect(rectangle: Rectangle, fill: Paint)

Fills a rectangle.

Parameters

rectangle

to draw

fill

to fill with


abstract fun rect(rectangle: Rectangle, stroke: Stroke, fill: Paint? = null)

Fills and outlines a rectangle.

Parameters

rectangle

to draw

stroke

to outline with

fill

to fill with


abstract fun rect(rectangle: Rectangle, radius: Double, fill: Paint)

Fills a rounded rectangle.

Parameters

rectangle

to draw

radius

for corners

fill

to fill with


abstract fun rect(rectangle: Rectangle, radius: Double, stroke: Stroke, fill: Paint? = null)

Fills and outlines a rounded rectangle.

Parameters

rectangle

to draw

radius

for corners

stroke

to outline with

fill

to fill with