Created
May 16, 2009 23:02
-
-
Save endolith/112843 to your computer and use it in GitHub Desktop.
Processing sketch to show your mouse's movement
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
// Processing sketch to show your mouse's movement | |
// Linux's mouse acceleration really sucks. | |
void setup() { | |
size(800, 800); | |
background(0); | |
} | |
void draw(){ | |
if (mousePressed == true) { | |
background(0); | |
} | |
stroke(255); | |
strokeWeight(1); | |
} | |
void mouseMoved(){ | |
point(mouseX, mouseY); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment