line3

fun Canvas.line3(x1: Int, y1: Int, z1: Int, x2: Int, y2: Int, z2: Int, color: Color = Color.BLACK)

Draws a 3D line on the canvas.

Parameters

x1

The X coordiante of the starting point.

y1

The Y coordiante of the starting point.

z1

The Z coordiante of the starting point.

x2

The X coordiante of the ending point.

y2

The Y coordiante of the ending point.

z2

The Z coordiante of the ending point.

color

The color of the line