-
-
Save lizzybrooks/d42cd17ea682717970717d6d1c5bef69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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