mirror of
https://github.com/processing/processing4.git
synced 2026-02-19 21:35:55 +01:00
27 lines
292 B
Plaintext
27 lines
292 B
Plaintext
// The Nature of Code
|
|
// Daniel Shiffman
|
|
// http://natureofcode.com
|
|
|
|
// 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;
|
|
}
|
|
|
|
}
|
|
|
|
|