Java Reference
In-Depth Information
Figure 8-7. Animated opacity
The word Opacity is revealed as the middle Stop approaches the center of the image, while at the
same time becoming more transparent. The source code in Listing 8-13 shows how this animation is
simplified by the animation functions defined earlier in the chapter.
Listing 8-13. opacity
function opacity():Void{
delete group.content;
var offset = 0.0;
var opacity = 1.0;
var rect = Rectangle{
translateX: 640/2-350/2;
Search WWH ::

Custom Search