Skip to main content
100%

p5 L-Systems

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Feb 8, 2017
Created on Feb 8, 2017

This generative sketch implements a Lindenmayer system to draw an intricate, plant-like fractal pattern. An animated "turtle" traverses a precomputed string of symbols, interpreting each character as a drawing command—moving forward, turning, or placing decorative dots. The p5.js `setup()` and `draw()` functions handle the animation loop, while custom functions `lindenmayer()` and `drawIt()` manage rule substitution and rendering. Random color values and Gaussian-distributed dot sizes create a lively, organic texture over the thin black lines.

AI-generated description

Lindenmayer Systems

P5 example from https://p5js.org/examples/simulate-l-systems.html

Built with blockbuilder.org

mit Licensed

Similar vizzes