Skip to content

Instantly share code, notes, and snippets.

@endolith
Created May 16, 2009 23:02
Show Gist options
  • Save endolith/112843 to your computer and use it in GitHub Desktop.
Save endolith/112843 to your computer and use it in GitHub Desktop.
Processing sketch to show your mouse's movement
// 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