Java Reference
In-Depth Information
Figure 5-9. Step plus polynomial interpolation
Now that the implementation of the step interpolator has been described, let's explore how it can
be useful. Taking the clock example again, consider the code in Listing 5-10.
Listing 5-10. ClockExample.fx
function run():Void{
var clock = Group{
translateX: 320
translateY: 230
}
for (i in [0..59]){
var dot = Group{
content: Circle{
translateX: 200
radius: 1
Search WWH ::




Custom Search