Shape
fun IsometricScope.Shape(geometry: 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)
Add a 3D shape to the isometric scene.
Name disambiguation: This composable shares its name with io.github.jayteealao.isometric.Shape, the core geometry class that represents a 3D shape (collection of io.github.jayteealao.isometric.Paths). The geometry parameter accepts that class. If both are imported in the same file, use an import alias:
import io.github.jayteealao.isometric.Shape as ShapeGeometryContent copied to clipboard
Parameters
geometry
The 3D io.github.jayteealao.isometric.Shape to render (e.g., io.github.jayteealao.isometric.shapes.Prism)
color
The color of the shape (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 shape is visible