time(s).

Step Size:

Step Ratio:

Start Position (x)

Start Position (y)

Background Colour:

Stroke Colour:

Replacement Rules:

:

:

:




Welcome to GERBIL, the Great Excellent Really Brilliant Imager of Lsystems!

Hit Apply to start the entered lsystem! Type in the lsystem next to Apply, and choose how many copies of the lsystem you'd like to run. It starts on the first iteration, before any replacements are made.

Hit Iterate to move on a step. This makes the replacements defined in Replacement Rules below.

Step Size changes how far one forward instruction goes in the first iteration. Step Ratio changes how much this shrinks by upon applying another iteration.

Start Pos (x and y) change the coordinates of the starting position. Use this to move your image around!

You can change the background colour and stroke colour in the next two settings, thanks to a cool library called jscolor.

Next is the Replacement Rules. You define a rule here (so F means go forwards, for example), and what you'd like this letter to be replaced by on each iteration. You can define multiple forwards, turn and stack saving instructions by adding new rules (with "Add new rule"). The number next to each instruction is the angle to turn, if applicable. You can also write and read to a stack - this stores the position and direction that you're currently travelling in, and then you can retrieve the latest state that you've not already retrieved with Stack Read.

Rainbow Mode is the best.

Here you can save and load strings made by the program, so you can show off your pretty lsystem to all of your friends!...?

Finally, here are some examples, just select one to see what it looks like! Maybe you can try opening an example and then modifying it to make it even prettier!

This totally amazing program was made by Team Pi, your ultimate source of Pi-based nonsense.

Go back to the program