More Trident demos

February 28th, 2009

The work on Trident project announced in the previous post continues, and here are a few demos that my Twitter followers might have seen during this week:

Simple demo recreating the fireworks from this JavaFX implementation. The source is available in the SVN test/ class and shows the usage of parallel scenarios. Each volley explosion is a separate Trident timeline, and there are 270 of those running at the same time. The CPU usage is about 8-10% as compared to the 25-30% usage of the JavaFX example (on my machine).

Another simple demo recreating the Groovy GraphicsBuilder snake. The source is available in the SVN test/ class and shows the new Timeline.replay() method.

The last two videos show the work in progress on a larger demo. The full source code will be available in the next few weeks, but in the meantime you can see some of the animations. The first one shows sliding images, with usage of timeline scenarios, each comprising multiple sequenced and branching timelines, swing workers and runnables with futures:

And the second one shows the usage frequency of specific words, using the new interpolator capabilities of the Timeline class: