Skip to content

ahaku/l-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L-System

A simple visualization of L-System made with Three.js
Demo

There are some ready-made shapes, such as a Sierpinski Triangle, Koch Curve and so on.

Some kind of turtle graphics with the following set of constants and drawing rules is used here:

A, F, G → draw forward
B → Skip (used to control the evolution of the curve)
- → Turn left by angle delta
+ → Turn right by angle delta
[ → Save the current values for position and angle
] → Restore the saved values for position and angle


Vite is used here as a build tool

About

L-System (built with Three.js)

Topics

Resources

Stars

Watchers

Forks

Contributors