Skip to content

Instantly share code, notes, and snippets.

@seabre
Created October 12, 2011 16:11
Show Gist options
  • Save seabre/1281673 to your computer and use it in GitHub Desktop.
Save seabre/1281673 to your computer and use it in GitHub Desktop.
Basic Processing Sketch Template
int x,y;
void setup() {
x = 0;
y = 0;
size(640,480); // size of the window in pixels
frameRate(30); // call the draw() @ 30 fps
background(0,0,0); // background color
println("Basic Processing Sketch Template"); // print some text to the debug window
}
// draw loop
void draw() {
x = mouseX;
y = mouseY;
println("cursor at: " + x + ", " + y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment