tornadofx / tornadofx / javafx.scene.Node / scale

scale

fun Node.scale(time: Duration, scale: Point2D, easing: Interpolator = Interpolator.EASE_BOTH, reversed: Boolean = false, play: Boolean = true, op: ScaleTransition.() -> Unit = {}): ScaleTransition

A convenience function for creating a ScaleTransition on a Node.

Parameters

time - How long the animation will take

scale - How to scale the node (relative to its default scale)

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 ScaleTransition on this node