Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

WashingtonYandun/NaturalTree.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NaturalTree.js

I used a Lindenmayer system to draw a "Natural Tree"

What is a "L-System"?

An L-system or Lindenmayer system is a parallel rewriting system and a type of formal grammar. An L-system consists of an alphabet of symbols that can be used to make strings, a collection of production rules 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. L-systems were introduced and developed in 1968 by Aristid Lindenmayer, a Hungarian theoretical biologist and botanist

Example

A tree and behind it, the text that generates it.

Tree