tornadofx / tornadofx / javafx.scene.Node / rotate

rotate

fun Node.rotate(time: Duration, angle: Number, easing: Interpolator = Interpolator.EASE_BOTH, reversed: Boolean = false, play: Boolean = true, op: RotateTransition.() -> Unit = {}): RotateTransition

A convenience function for creating a RotateTransition on a Node.

Parameters

time - How long the animation will take

angle - How far to rotate the node (in degrees; relative to its 0 rotation)

easing - How to interpolate the animation

reversed - Whether the animation should be played in reverse

play - Whether the animation should start playing automatically

op - Modify the animation after it is created

Return
A RotateTransition on this node