triangle3

fun Canvas.triangle3(x1: Float, y1: Float, z1: Float, x2: Float, y2: Float, z2: Float, x3: Float, y3: Float, z3: Float, color: Color = Color.BLACK)

Draws a triangle in 3D space.

Parameters

x1

The X coordinate of the first vertex.

y1

The Y coordinate of the first vertex.

z1

The Z coordinate of the first vertex.

x2

The X coordinate of the second vertex.

y2

The Y Coordinate of the second vertex.

z2

The Z coordinate of the second vertex.

x3

The X coordinate of the third vertex.

y3

The Y coordinate of the third vertex.

z3

The Z coordinate of the third vertex.

color

The color of the triange outline.