moving getting started to the books subfolder

This commit is contained in:
benfry
2011-01-26 19:27:48 +00:00
parent eb64b2d4fc
commit a187b61523
145 changed files with 0 additions and 0 deletions
@@ -0,0 +1,25 @@
// Example 11-05 from "Getting Started with Processing"
// by Reas & Fry. O'Reilly / Make 2010
import processing.pdf.*;
void setup() {
size(600, 800, PDF, "Ex-11-5.pdf");
noFill();
strokeCap(SQUARE);
}
void draw() {
background(255);
for (int y = 100; y < height - 300; y+=20) {
float r = random(0, 102);
strokeWeight(r / 10);
beginShape();
vertex(100, y);
vertex(width/2, y + 200);
vertex(width-100, y);
endShape();
}
exit();
}