xxxxxxxxxx
15
function setup() {
createCanvas(400, 400);
background(220);
strokeWeight(5);
}
function draw() {
print(frameCount);
stroke('red');
ellipse( frameCount%width, 200, 100,100);
if (mouseIsPressed){
stroke(0);
line(pmouseX, pmouseY, mouseX, mouseY);
}
}