xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(255, 255, 255);
}
var value = 0;
function draw() {
//background(220,7 );
//background(100, 5);
stroke(random(100), 100, 70, 110);
//noStroke();
//fill255, 0, 255);
//ellipse(15, 15, 200, 200);
noFill();
translate(mouseX, mouseY);
rectMode(CENTER);
rotate( random(PI));
//rotate( radians(45));
//rect(0, 0, 200, 200);
//triangle(15, 15, 200, 200);
//fill(255, 0, 255);
//line(120,120, 100, 100);
//sphere(100,120,120);
//beginShape();
//vertex(30, 20);
//bezierVertex(80, 00, 200, 75, 30, 75, 900);
//endShape();
//rect(0,0,random(value),random(value));
ellipse(0,0,random(value),random(value));
//ellipse(0,0,value,value);
}
function mouseClicked() {
if (value == 0) {
value = 300;
} else {
value = 0;
}
}