Files
processing4/java/examples/Books/Nature of Code/chp8_fractals/Tree3/Leaf.pde
2012-12-11 20:04:34 +00:00

24 lines
345 B
Plaintext

// The Nature of Code
// Daniel Shiffman
// http://natureofcode.com
// Recursive Tree (w/ ArrayList)
// A class for a leaf that gets placed at the end of
// the last branches
class Leaf {
PVector loc;
Leaf(PVector l) {
loc = l.get();
}
void display() {
noStroke();
fill(50,100);
ellipse(loc.x,loc.y,4,4);
}
}