mouseX
GlobalThe x mouse coordinate.
createWindow(200, 200);
stroke(255);
function draw()
background('purple');
line(mouseX, 0, mouseX, height);
end
Output
mouseX
GlobalThe x mouse coordinate.
createWindow(200, 200);
stroke(255);
function draw()
background('purple');
line(mouseX, 0, mouseX, height);
end
Output