tornadofx / tornadofx / scale


fun UIComponent.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 UIComponent.


time - How long the animation will take

scale - How to scale the component (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

A ScaleTransition on this component