void setup() {
size(1080, 720);
diametro = 0;
ancho = 0.5;
r= 2;
g= 20;
b= 1;
noFill();
colorMode(RGB);
background(108, 12, 193);
}
void draw() {
noStroke();
fill(108, 12, 193, 1);
rect(0, 0, width, height);
strokeWeight(ancho);
stroke (r, g, b);
ellipse(mouseX, mouseY, diametro, diametro);
diametro = diametro+0.1;
ancho += 0.2;
r += 0.1 ;
g += 0.5;
b += 1;
if (diametro>1460) {
diametro=0;
ancho=0.5;
}
println(diametro);
}
No comments:
Post a Comment