Java Reference
In-Depth Information
blur => 0.0 tween Interpolator.EASEBOTH
]
},
KeyFrame{
time: 1s
values: [
brightness => 1.0 tween Interpolator.EASEBOTH,
blur => 6.0 tween Interpolator.EASEBOTH
]
action: function(){
delete holder.content;
replacementNode.translateX = 0.0;
replacementNode.translateY = 0.0;
insert replacementNode into holder.content;
nodeToReplace.translateX = startingX;
nodeToReplace.translateY = startingY;
}
},
KeyFrame{
time: 2s
values: [
brightness => 0.0 tween Interpolator.EASEBOTH,
blur => 0.0 tween Interpolator.EASEBOTH
]
action: function(){
delete holder.content;
replacementNode.translateX = startingX;
replacementNode.translateY = startingY;
insert replacementNode before parent.content[index];
}
},
KeyFrame{
time: 2s + 1ms
action: doAfter
}
]
}
t.play();
}
In Listing 3-7, the node nodeToReplace is wrapped by a group called holder . The node holder then
has a ColorAdjust applied to it with a GaussianBlur . The Timeline t simply increases the brightness from
0.0 to 1.0, increases the radius of the GaussianBlur to 6.0, swaps the nodes, and then returns the
brightness and radius to their original values. The usual clean-up code is executed last.
Search WWH ::




Custom Search