Batch

fun IsometricScope.Batch(shapes: List<Shape>, color: IsoColor = LocalDefaultColor.current, position: Point = Point(0.0, 0.0, 0.0), rotation: Double = 0.0, scale: Double = 1.0, rotationOrigin: Point? = null, scaleOrigin: Point? = null, visible: Boolean = true)

Batch multiple shapes with the same color for performance.

Parameters

shapes

List of shapes to render

color

The color for all shapes (defaults to LocalDefaultColor)

position

Local position offset

rotation

Local rotation around Z axis

scale

Local scale factor

rotationOrigin

Origin point for rotation

scaleOrigin

Origin point for scaling

visible

Whether the batch is visible

See also