Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save WilliamLivingood/96b0060eee6785b364d07dbc4b006253 to your computer and use it in GitHub Desktop.

Select an option

Save WilliamLivingood/96b0060eee6785b364d07dbc4b006253 to your computer and use it in GitHub Desktop.
System Design 1, lightning
LSystem desy1() {
float moveDist = 36;
float rotateAngle = 50;
float scaleFactor = 1.8;
String axiom = "F";
// Create any production rules
HashMap<Character, String> rules = new HashMap<>();
rules.put('F', "F[+F]F[-F]F+F--F+F[-F]");
// Create and return the Lsystem
return new LSystem(axiom, rules, moveDist, rotateAngle, scaleFactor);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment