xxxxxxxxxx
18
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
// Render crosshairs
stroke(160);
line(mouseX, 0, mouseX, height);
line(0, mouseY, width, mouseY);
// Draw to screen
fill(160);
textSize(24);
text(mouseX + ", " + mouseY, 20,30);
}