xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(230);
noStroke();
}
// click vs hold
// mouseIsPressed (?held) is a boolean variable
// mousePressed (?clicked) is a function that executes the code; it is an event that occurs when mouse is pressed and won't stop (like a loop)
function draw() {
if (mouseIsPressed === true) {
fill('pink')
circle(mouseX, mouseY, 20)
}
if (keyIsPressed === true) {
fill(230);
circle(mouseX, mouseY, 20)
}
}