Dancing Trapezoids


DirectAnimation has a powerful, high-level interface for sequencing any behavior. DirectAnimation behaviors support methods for specifying their duration, number of repetitions, and for sequencing two behaviors together so that one will begin when the other ends. This example shows how this can be used to create very complex transformations with a minimum amount of scripting.