Saturday, December 07, 2013

Forever dots

void setup(){
smooth(); 
//Makes the umberellas smooth
background(255,255,255);
size(800,300);
frameRate(20);
//slows the frame rate for more inpact.
}
//All this next bit is  about the actual umberellas.
void draw() {
int posx = int(random(0,width));
int posy = int(random(0,height));
float radius = random(10,30);
//these are the positions which are used 
//later to draw the umberellas
fill(random(1,500),random(1,500),random(1,500),30);
strokeWeight(random(0,2));
//here is the code for the circles 
//around the star shapes.
ellipse(posx,posy,radius*4,radius*4);
ellipse(posx,posy,radius*3,radius*3);
ellipse(posx,posy,radius*2.5,radius*2.5);
//this is the code for the the stars 
//in the center of the circles.
for(float i = 0.0; i < 2.0*PI; i+=0.5-radius/200){

line(posx,posy,posx+sin(i)*radius,posy+cos(i)*radius);
}  
}
//the end of the code

info info

submitted by: KeelingAlexandra
views: 48
I Think Its A Nice piece Of art

Tags:

comments comment

loading loading...

 

Add a comment: