start
, stop
, pause
, resume
and restart
; all these additions make the code much shorter while keeping the same behavior in place, see for yourself.
A yellow-ish color is set on line 8 using aliases, similar calls may be like the following ones
- def foreground = 'yellow'
- def foreground = color( 'yellow' )
- def foreground = color( color: 'yellow' ) )
- def foreground = color( red: 1, green: 1 )
- def foreground = rgba( red: 1, green: 1 )
- def foreground = rgba( r: 1, g: 1 )
f
on line 14 stands for fill
, finally the animation is restarted every time the mouse steps into one of the rectangles, with a simple call, no need to expose the internal state of the animation.You may find these and other features in the next version of GraphicsBuilder.
Keep on Groovying