Flash Bestiary / Circles / Spyrograph |
|
SpyrographA simulation of the designs produced by the classic Spyrograph toy. The Spyrograph uses a plastic ring and a plastic disc. The larger ring is pinned down to fix it into place, and the smaller disc travels around the inner circumfrence of the outer ring, propelled by the nib of a pen, which is poking thru a hole in the inner ring. This movie draws the pattern using a series of curveTo() commands. The last 200 coordinates are stored in an array, along with colors and alpha values. The line segments are assigned different rainbow colors from this array, and the trailing edge of the drawing is faded out. Here's the actionscript code for figuring out each successive pen position in the spyrograph pattern. It uses these variables:
// angle of travelling disc |
|
|
|
Next: Double Spyrograph |
Copyright © 2003,2004 by Jim Bumgardner. All Rights Reserved. Leave Jim some feedback