A Lindemayer system or LSystem for short consists of an alphabet of symbols that can be used to make strings, a collection of production that expand each symbol into some larger string of symbols, an initial "Axiom" string from which to begin construction, and a mechanism for translating the generated strings into geometric structures. For Barnsley Fern, the LSystem is defined as follows. Once the LSystem is defined, we can build the drawing sequence. Iterations define the number of rounds the sequence will be expanded using the given rules. The higher the iteration, the better defined the picture is. For Barnsley Fern, the sequence expands as follows for subsequent iterations. Each character in the sequence defines a particular set of operations on the canvas.

Send Feedback | WebAssembly Version (beta)

⬆