Skip to content

Instantly share code, notes, and snippets.

@nataliefreed
Created February 2, 2017 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nataliefreed/1ab03eff41af1b60c711b6b46b797796 to your computer and use it in GitHub Desktop.
Save nataliefreed/1ab03eff41af1b60c711b6b46b797796 to your computer and use it in GitHub Desktop.
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