xxxxxxxxxx
// Starter Sketch: Mouse-Based Color Change
// Goal: Check the mouse's x-position to determine the circle fill color
function setup() {
createCanvas(300, 300);
}
function draw() {
background(220);
// Red for less than 100px
// Green for between 100px and 200px
// Blue for greater than 200px
// if (condition) {
// // Code to run if condition is true
// } else if (anotherCondition) {
// // Code to run if the second condition is true
// } else {
// // Code to run if neither condition is true
// }
// Draw a circle at the mouse position
ellipse(mouseX, mouseY, 50); // Circle with a diameter of 50px
}