Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function setup() {
}
function draw() {
drawMouseCoordinates();
}
function drawMouseCoordinates() {
push();
noStroke();
fill(255);
rect(0, 0, 75, 30);
fill(0);
stroke(0);
text(mouseX + ", " + mouseY, 10, 20);
pop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.