Thursday, March 3, 2011

[Processing] More Perlin Noise demo with Processing

Actually it is generated with the Perlin Noise Particle System from Dann Van Hasselt (http://www.openprocessing.org/visuals/?visualID=10475)
What I did is set the initial particle position in every loop (within draw()):
e.g., 
           myt=elapseFrames/10/TWO_PI;
           pos.x=0.5*width +(1-sin(myt))*cos(myt)*0.2*width;
           pos.y=0.5*height-(1-sin(myt))*sin(myt)*0.2*height;

Also you can change the color and particle details to get something like (online):
or a colourful one:

No comments:

ShowCalendar