100




int num = 30;
float xoff[] = new float[num];
float increment[] = new float[num];
float n[] = new float[num];
void setup(){
size(400,200);
strokeWeight(2);
for(int i =0; i < num; i++){
xoff[i] = random(1.0);
increment[i]=random(.01,.03);
}

}
void draw(){

fill(204,30);
rect(0,0,width,height);
for(int i = 0; i < num; i++){
xoff[i] = xoff[i]+increment[i];
n[i] = noise(xoff[i])*width;
fill(255,10);
line(n[i],0,n[i],height);
}
filter(BLUR,3);
}

void mousePressed(){
save("100.jpg");
}

コメント