xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
}
function draw() {
background(255,30);
fill(255,0,255);
rect(300,400,100,100);
//stroke(random(200,255),0,255);
//noStroke();
//fill(255,0,255);
//noFill();
rectMode(CENTER)
translate(mouseX,mouseY);
if(mouseIsPressed==true)
line(0,0,0,200);
if(mouseIsPressed==true)
ellipse(0,0,100,100);
rotate(random(PI));
//line(0,0,0,200);
if(mouseIsPressed==true)
triangle(0,200,100,100);
}