92


float xoff = 0.0;
float yoff = 0.0;
float xincrement = 0.01;
float yincrement = 0.02;

void setup(){
size(200,200);
background(0);
frameRate(30);
smooth();
noStroke();
}


void draw(){
backalfa();
float n = noise(xoff)*width;
float l = noise(yoff)*height;
xoff += xincrement;
yoff += yincrement;

fill(200);
ellipse(n,l,16,16);
if(mousePressed){
save("92.jpg");
}
}

void backalfa(){
fill(0,4);
rect(0,0,width,height);
}

コメント