drawTexture

fun Canvas.drawTexture(texture: Texture2D, x: Int, y: Int, tint: Color = Color.WHITE)

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

Parameters

texture

The texture to draw.

x

The X coordinate where the texture will be drawn.

y

The X coordinate where the texture will be drawn.

tint

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