xxxxxxxxxx
18
function setup() { // this function runs once when the page loads
createCanvas(windowWidth, windowHeight); // making the dimensions of the canvas take up the entire window
background(255,255,255); // making the background color white
} // end of the setup() function
function draw() { // this function will loop 60x a second
background(255,255,255);
noStroke();
fill(0,0,0);
console.log("mouse X: " + mouseX); // displaying the mouseX value in the console
console.log("mouse Y: " + mouseY);
ellipse(mouseX, mouseY, 40, 40); // making the circle move with the mouse
}