void setup() {
size(1024,768);
background(0);
smooth();
frameRate(10);
}
void draw() {
fill(0,30,80,40);
rect(0,0,width,height);
pushMatrix();
translate(width/4,height/2);
for(int i=0; i<15;i++) {
float diameter;
diameter=random(0,250);
pushMatrix();
rotate (radians(random(360)));
translate(diameter,0);
noStroke();
for(int j=0;j<32;j++){
fill(255,20);
ellipse(0,0,diameter/((j+1)/2),diameter/((j+1)/2));
}
popMatrix();
}
popMatrix();
}
Hilsen Oyvind:-)
Advertisement