Files
processing4/java/examples/Books/Nature of Code/chp8_fractals/lsys/Rule.pde

27 lines
305 B
Plaintext

/* Daniel Shiffman */
/* http://www.shiffman.net */
/* A Class to describe an
LSystem Rule */
class Rule {
char a;
String b;
Rule(char a_, String b_) {
a = a_;
b = b_;
}
char getA() {
return a;
}
String getB() {
return b;
}
}