Skip to content

Instantly share code, notes, and snippets.

@firepunch
Created March 19, 2017 06:59
Show Gist options
  • Save firepunch/6dd1fbcef1b5d5a33044833bd999b404 to your computer and use it in GitHub Desktop.
Save firepunch/6dd1fbcef1b5d5a33044833bd999b404 to your computer and use it in GitHub Desktop.
draw a line using mouse
void setup() {
size(400, 400);
stroke(255);
// background(192,64,0);
}
void draw() {
// background(192,64,0);
line(150, 25, mouseX, mouseY);
saveFrame("helloMouse-ouput-###.png");
}
void mousePressed() {
background(192,64,0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment