edvin
07/21/2017, 2:48 PMedvin
07/21/2017, 2:48 PMRuckus
07/21/2017, 2:54 PMedvin
07/21/2017, 2:57 PMRuckus
07/21/2017, 3:04 PMRuckus
07/21/2017, 3:08 PMthen
to chain any `Animation`s into `SequentialTransition`s, and and
to chain `Animation`s into `ParallelTransition`s.
There are also convenience functions for animating position (move
), rotation (rotate
), scale (scale
), and opacity (fade
), as well as a transform
helper that lets you do all of them at once.
All those helpers work for `Node`s and `UIComponent`s.Ruckus
07/21/2017, 3:09 PMRuckus
07/21/2017, 3:13 PMthen
and and
also take `vararg`s, so instead of t1.then(t2).then(t3).then(t4).play()
you could do t1.then(t2, t3, t4).play()
, which has a very slight advantage that it only creates one SequentialTransition
instead of 3 nested.Ruckus
07/21/2017, 3:19 PMRuckus
07/21/2017, 3:25 PMmoveBy
function that moves to the current location + an offset (instead of to an absolute destination like move
)Ruckus
07/21/2017, 3:26 PMEASE_BOTH
, which is different from JavaFX's default interpolator (LINEAR
). Is that an issue?carlw
07/21/2017, 4:01 PMedvin
07/21/2017, 4:18 PMRuckus
07/21/2017, 4:19 PMedvin
07/21/2017, 4:19 PMedvin
07/21/2017, 4:20 PMr1.moveLeft(0.5seconds, 10) then r1.moveUp(0.5.seconds, 50)
Ruckus
07/21/2017, 4:21 PM(Transition.() -> Unit)
builder extensions. But it would be sexy.Ruckus
07/21/2017, 4:22 PMRuckus
07/21/2017, 4:22 PMedvin
07/21/2017, 4:25 PMPoint2D
instance as well?Ruckus
07/21/2017, 4:26 PMp(Double, Double)
or do you have something else in mind?edvin
07/21/2017, 4:27 PM1 b 1
, and it could support number instead of just Double
.edvin
07/21/2017, 4:28 PMPoint2D
based on a Nodes current position.edvin
07/21/2017, 4:28 PMmoveBy
and friends.Ruckus
07/21/2017, 4:29 PMPoint2D.b(Number): Point3D
as well so you could do 1 b 1 b 1
, though I'm not sure how useful that would be.Ruckus
07/21/2017, 4:29 PMb
?edvin
07/21/2017, 4:30 PMp
- hehe.. sorry 🙂edvin
07/21/2017, 4:30 PMby
is taken!Ruckus
07/21/2017, 4:30 PMedvin
07/21/2017, 4:31 PMPoint2D.z(Number): Point3D
perhaps?