home page icon Flash Bestiary / Natural Phenomena / Phyllotaxy


This program arranges a series of circular sprites in a pattern resembling a daisy or sunflower.

The sprites are arranged in a logarithmic spiral involving the golden ratio - similar to plant phyllotaxy. This gives us an optimal distribution for the sprites, and makes for interesting patterns.

The color of each sprite is determined by a cyclic function involving time and the sprite's polar coordinates [d,a]. (its Distance from the center, and its Angle around the circle).

When animated, sine waves are used to affect the:

  • number of 'spokes' in the pattern (it's radial frequency)
  • degree of twist
  • color palette used

UPDATE: The source code below now contains an Actionscript 3 version, in addition to the original Flash MX code.


sourcecode iconDownload the flash project
book iconJim's Favorite Actionscript Books
wiki iconAsk Jim about Actionscript
Next: Super Balls

Having trouble opening the project? You may need to Upgrade to Flash CS3

Copyright © 2003,2008 by Jim Bumgardner. All Rights Reserved.        Leave Jim some feedback