rotate

open fun rotate(angleDegrees: Float, px: Float, py: Float, pivot: Pivot = Pivot.RelativeToSelf): UIElement

Sets the rotation angle for the ui element

NOTE: The behaviour of changing this parameters during an animation is unpredicted

Return

the current UIElement object

Parameters

angleDegrees

rotation angle 0,360

px

rotation pivot x coordinate pixel

py

rotation pivot y coordinate pixel

pivot

the transformation pivot type


open fun rotate(angleDegrees: Float): UIElement

Sets the rotation angle for the ui element

NOTE: The behaviour of changing this parameters during an animation is unpredicted

Return

the current UIElement object

Parameters

angleDegrees

rotation angle 0,360