draw

fun Canvas.draw(x: Int, y: Int, z: Int, color: Color)

Draws a 3D point on the canvas.

Parameters

x

The X coordiante of the point.

y

The Y coordiante of the point.

z

The Z coordiante of the point.

color

The color of the point


fun Canvas.draw(x: Int, y: Int, color: Color = Color.BLACK)

Draws a pixel on the canvas.

Parameters

x

The X coord to draw at

y

The Y coord to draw at

color

The color of the pixel