Created
October 6, 2025 03:50
-
-
Save WilliamLivingood/96b0060eee6785b364d07dbc4b006253 to your computer and use it in GitHub Desktop.
System Design 1, lightning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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