adding nature of code examples

This commit is contained in:
shiffman
2012-09-04 00:55:42 +00:00
parent 6e10c689e1
commit 6ad7b782d9
581 changed files with 229203 additions and 0 deletions
@@ -0,0 +1,22 @@
// The Nature of Code
// http://www.shiffman.net/
void setup() {
size(400,200);
smooth();
}
void draw() {
background(255);
noFill();
stroke(0);
strokeWeight(2);
beginShape();
for (int i = 0; i < width; i++) {
float y = random(height);
vertex(i,y);
}
endShape();
noLoop();
}