Kode for Blobb

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.