Skip to content

Basic implementation of an L-System along with an interpreter written with the Turtle graphics library.

Notifications You must be signed in to change notification settings

duncangrubbs/L-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

L-system

A basic implementation of an L-System along with an interpreter written with the Turtle graphics library.

📓About

An L-system is a type of formal grammar used to create artificial plants (and more) in procedural content generation. This repository is a very simple implementation of an L-System and a Stochastic L-System generator in Java. There is also a 2D implementation of a graphical interpreter written with the Turtle graphics library.

The L-System generates strings through formal grammar production rules, and then the LSystemInterpreter interprates the strings as directions for drawing on the screen, thus drawing the plant like forms.

👩‍💻How to Run

  1. Make sure you have Java Installed
  2. javac src/*.java
  3. java -cp src Demo

See README.pdf for more info

About

Basic implementation of an L-System along with an interpreter written with the Turtle graphics library.

Topics

Resources

Stars

Watchers

Forks

Languages