SkillAgentSearch skills...

Lindenmayer.jl

draw Lindenmayer (L-Systems) recursive graphics

Install / Use

/learn @cormullion/Lindenmayer.jl
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

| Documentation | Build Status | Code Coverage | |:---------------------------------------:|:-----------------------------------------:|:-------------------------------:| | | Build Status | | | | Build Status | |

<img src="docs/src/assets/figures/wordmark.svg" alt="plant" title="Plant" width="800" />

Lindenmayer (LSystems)

This package builds and draws Lindenmayer systems (LSystems). It uses Luxor.jl to draw the graphics.

L-systems were introduced and developed in 1968 by Aristid Lindenmayer, a Hungarian theoretical biologist and botanist at the University of Utrecht. Lindenmayer used L-systems to describe the behaviour of plant cells and to model the growth processes of plant development. L-systems have also been used to model the morphology of a variety of organisms and can be used to generate self-similar fractals such as iterated function systems.

<img src="docs/src/assets/figures/plant.png" alt="plant" title="Plant" width="800" />
using Lindenmayer

plant  = LSystem(["F" => "F[-F]cF[+F][F]"], "F")

drawLSystem(plant,
    forward              = 6,
    startingpen          = (0, 0.8, 0.3),
    startingx            = 0,
    startingy            = 400,
    startingorientation  = -π/2,
    turn                 = 17,
    iterations           = 6,
    filename             = "plant.png")

View on GitHub
GitHub Stars46
CategoryDevelopment
Updated22h ago
Forks3

Languages

Julia

Security Score

80/100

Audited on Mar 28, 2026

No findings