drawImage

fun Canvas.drawImage(image: Image, x: Int, y: Int, tint: Color = Color.WHITE)

Draws an image on the canvas at the specified position with an optional tint color.

Parameters

image

The image to draw.

x

The X coordinate where the image will be drawn.

y

The Y coordinate where the image will be drawn.

tint

The color to tint the image. Default is white (no tint).