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
@Deprecated(
    DeprecatedStyleProperty,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public 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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: