miércoles, 13 de abril de 2011

13.04.11

float r;
float g;
float a;

float diam;
float x;
float y;

void setup () {
size(500,500);
background (0);
smooth();
}

void draw (){

float k = random (50);

r=random(250);
g=random(250);
a=random(200);
diam = random (20);
x= random (width);
y= random (height);
fill (r,g,a);
noStroke();
ellipse(mouseX,mouseY,k,k);
}




float r;
float g;
float a;
float b;
float diam;
float x;
float y;

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


void draw() {

frameRate (15);
float s =random (150);

r = random (200);
g = random (200);
a =(50);

int w = width/2;
if(mouseX >= width/2){
rectMode (CENTER);
fill(r,g,a);
rect(w,w,s,s);
}else{
ellipse(w,w,s,s);
}
}
30.03.11

size (200,200);
background (237,29,213);
fill (44,82,229,20);
rect (10,10,180,180);
fill (44,82,229,50);
rect (15,15,170,170);
fill (44,82,229,100);
rect (20,20,160,160);
fill (44,82,229);
rect (30,30,140,140);
fill (255,5,14,200);
ellipse (150,50,20,20);
ellipse (130,120,30,30);
fill (225,5,14);
ellipse (50,50,40,40);
ellipse (35,165,5,5);



size (200,200);
background (5,6,44);
fill (255,255,255,125);
rect (90,25,20,3);
rect (107,34,47,3);
rect (70,29,50,3);
rect (50,38,30,2);
rect (98,40,80,4);
rect (23,44,70,4);
rect (115,49,81,6);
rect (07,59,135,7);
rect (92,65,108,8);
rect (2,70,60,9);
rect (154,77,46,10);
rect (0,83,86,7);
rect (103,89,97,15);
rect (0,97,95,16);
rect (50,100,150,18);
rect (0,123,38,22);
rect (85,120,115,23);
rect (0,140,80,20);
rect (0,165,100,35);
rect (70,152,130,33);
rect (135,192,65,8);



size (200,200);
background (237,150,10);
smooth ();
fill (31,48,193);
ellipse (100,180,180,16);
fill (24,25,16,200);
ellipse (100,180,180,16);
stroke (4);
fill (9,90,170);
ellipse (100,100,160,160);
stroke (0);
fill (203,230,255,125);
ellipse (100,120,160,120);
ellipse (100,140,160,80);
ellipse (100,160,160,40);