//******************************************* //The function that defines the initial set up //******************************************* void setup() { //Set the size of the canvas size(400, 400); //Set the color of the stroke (for the boundary of shapes) stroke(0, 255, 0); } //******************************************* //The function that is repeatedly called to // draw things and interact with the user //******************************************* void draw() { //Clear the background with a selected color background(192, 64, 0); //Draw a line from (150,20) to where the mouse is. line(150, 25, mouseX, mouseY); //Display the information of the X and Y coodinates of the mouse println( "(mouseX, mouseY)=(", mouseX, ",", mouseY, ")" ); }