bind()
, animate()
comes from Swing(X)Builder, thanks to the efforts of James and Danno, as a matter of fact you can read more about them here.The following movie shows a rectangle with two properties being animated:
x
& opacity
. Just for kicks I added a button to start the animation and a textfield whose text is bound to the rectangle's x
property.The animation is much smoother in case you are wondering, I'm still getting the hang on Wink. In case you are wondering
opacity
is available in groups, shapes and images, as it can be seen in the following example
You can see that I have made a little trick with images, I loaded the groovy logo once and reused it thrice. Opacity on groups is applied to all children and can ve overridden by any child, as the green-based gradient does.
Keep on Groovying!