This is another Flash on the Beach AS3.0 experiment. There is a perlin noise field that controls the rotation of a series of circles that are slightly off centre. Looking at this one in action makes my eyes go funny. Click on the image below to see it animate.
Perlin Noise experiment
by Daniel | Feb 19, 2008 | actionscript | 2 comments
wow, nice. how did you apply the perlin noise field here?
Hi Greg,
There is a hidden Perlin noise field in which the offset value is changed every frame. The rotation of each circle movieclip is determined by the colour of the relevant pixels in the Perlin field:
rotation =
Math.round(bmpData.getPixel(20+i*25, 20+25*j) / 0xFFFFFF * 720);
The divisor is used to translate the colour value into a number that is more useful for rotation.