draw

fun draw(callback: Canvas.() -> Unit)

Draws on the canvas using the provided callback function.

start and end are called automatically.

Parameters

callback

The drawing operations to perform on the canvas.