xxxxxxxxxx
16
function setup() {
createCanvas(750, 450);
background(200);
}
function draw() {
// Change "paintbrush" fill color to either white
// or black depending on whether mouse is pressed
if(mouseIsPressed){
fill(0); // fill color black
}else{
fill(255); // fill color white
}
circle(mouseX, mouseY, 50);
}