For my second project, I had used the rain idea and tried to make ripples on a water surface.
After some playing around, I noticed that the way the ripples were created seemed to approximate bacterial growth patterns.
The code is very simple right now, so I hope to go back and refine the way it places the ‘bacteria.’
noise(); does not seem to work properly on the blog, at least how I have it. Here is the code for now, I will be working on fixing it.
float x, y;
int i = 0;
void setup(){
size(500,500);
background(235,235,230);
frameRate(15);
smooth();
}
void draw(){
x = noise(i)*width;
y = noise(i+20)*height;
//background(90,150,230,50);
if(frameCount%3==0){
strokeWeight(7);
fill(70,70,100,220);
stroke(50,150,100);
ellipse(x,y,20,20);
strokeWeight(4);
fill(90,150,230,40);
stroke(255,255,255,50);
ellipse(x+2,y-2,20,20);
}
i+=1;
}