Created
October 12, 2011 16:11
-
-
Save seabre/1281673 to your computer and use it in GitHub Desktop.
Basic Processing Sketch Template
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
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