moving examples to hang out with their libraries

This commit is contained in:
benfry
2011-01-26 19:43:04 +00:00
parent ce5fd461f5
commit a53f278863
81 changed files with 0 additions and 0 deletions
@@ -0,0 +1,33 @@
/**
* Multiple Frames.
*
* Saves one PDF document of many frames drawn to the screen.
* Starts the file when the mouse is pressed and end the file
* when the mouse is released.
*/
import processing.pdf.*;
void setup() {
size(600, 600);
frameRate(24);
background(255);
}
void draw() {
stroke(0, 20);
strokeWeight(20.0);
line(mouseX, 0, width-mouseY, height);
}
void mousePressed() {
beginRecord(PDF, "Lines.pdf");
background(255);
}
void mouseReleased() {
endRecord();
background(255);
}