Saturday, August 22, 2009
brokendongle v7
int r = 255;
void setup()
{
size(300,300);
}
void draw()
{
background(mouseX,mouseY,mouseX+mouseY,mouseX);
for (int i=0; i < 10; i=i+1)
{
fill(r - i*27.5,125 + i*15,125-i*9);
rotate(i*mouseX/600*PI/50);
strokeWeight(10);
stroke(200,mouseY,mouseX,255/i);
fill(250,mouseY,mouseX,125/i);
rotate(mouseX*.001);
translate(mouseX*.05,mouseY*.05);
ellipse(125+mouseX/2,mouseY/2,
mouseY*.5,mouseX*.5);
stroke(10,mouseY,mouseX,255/i);
ellipse(125+mouseX/2+10,mouseY/2-5,
mouseY*.1,mouseX*.1);
ellipse(125+mouseX/2-10,mouseY/2-5,
mouseY*.1,mouseX*.1);
}
}
void setup()
{
size(300,300);
}
void draw()
{
background(mouseX,mouseY,mouseX+mouseY,mouseX);
for (int i=0; i < 10; i=i+1)
{
fill(r - i*27.5,125 + i*15,125-i*9);
rotate(i*mouseX/600*PI/50);
strokeWeight(10);
stroke(200,mouseY,mouseX,255/i);
fill(250,mouseY,mouseX,125/i);
rotate(mouseX*.001);
translate(mouseX*.05,mouseY*.05);
ellipse(125+mouseX/2,mouseY/2,
mouseY*.5,mouseX*.5);
stroke(10,mouseY,mouseX,255/i);
ellipse(125+mouseX/2+10,mouseY/2-5,
mouseY*.1,mouseX*.1);
ellipse(125+mouseX/2-10,mouseY/2-5,
mouseY*.1,mouseX*.1);
}
}