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);
}
}

No hay comentarios:

Publicar un comentario