Press space to redraw the fractal. Click see inside to see it. You can also replace the rules with whatever you want, "borrowed" from Wikipedia. You'll have to come up with some custom way of setting step size and the initial position, but I'm sure you'll manage.
Thanks to leszpio for https://scratch.mit.edu/projects/41687580/ It's been an inspiration for a long time. Thanks to all those programming books out there for information on how stacks work on a low level. Thanks to Parallax for making robots that need code like this. The point of this project is to test out some code. I want to make a robot that draws stuff like this. Right now, I have a robot that you can program and make it roll around. You can tape a marker to that and bam, drawings. Unfortunately, it doesn't have support for fancy stuff like "recursion" and "objects", which rules out the most obvious way of performing rule substitution in an L-System. I could have tried manually expanding the fractal in memory, but memory is expensive, and I couldn't get deeper th limited as well. So instead, I've made the stack explicit. The code in the project mostly works with an "array" of "bytes" representing memory. It's actually just a list where each element is a single character. Everything this "Robot" can do can also be written in PBasic, or whatever low level language you want.