Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

rotation

Rotates the component around the X-axis, Y-axis and Z-axis (perpendicular to the screen) through its center.

rotation

Source set: Common
@ExperimentalFoundationStyleApi
fun RotationScope.rotation(x: Float, y: Float, z: Float)

Rotates the component around the X-axis, Y-axis and Z-axis (perpendicular to the screen) through its center.

This property is not inherited

Parameters

x The x-axis rotation angle in degrees.
y The x-axis rotation angle in degrees.
z The x-axis rotation angle in degrees.

Last updated: