I am going to show you how to draw regular polygons using the Flash Drawing API. We’ll use these polygons to create a mouse trail effect by playing around with their scale, opacity and rotation.
In the example below, moving the mouse over the Stage creates a trail of polygons that grow in size and fade away. Their color, number of sides and rotation are all random.
(Move your mouse over the movie to see the effect.)

Recent Comments