Files
processing4/java/examples/Books/Nature of Code/chp8_fractals/Tree3/Leaf.pde

22 lines
350 B
Plaintext

// Recursive Tree (w/ ArrayList)
// Daniel Shiffman <http://www.shiffman.net>
// Nature of Code, Chapter 8
// 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);
}
}