Skip to content

irvang/L-system-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

L-system-generator.

Using openFrameworks v. 0.9.8.

To run source code:

a) Download and install openFrameworks from this page :openFrameworks.

b) Generate project, and use this folder as your source (you may replace src).

-To set new L-system in program:

a) On LSystem.cpp, line 5, set your starting axiom.

b) Set new rules below line 30 (see alphabet below). Each rule shold consist of a case, followed by a string and a break.

c) Change theta (angle of turn) on ofApp.cpp, line 18.

For more information about L-systems please see

The Algorithmic Beauty of Nature or Wikipedia - L-system.

Alphabet works as follows:

'f' or 'h': move forward and draw

'g': move backwards and draw

'F': move forward without drawing

'G': move backwards without drawing

'|': rotate 180 degrees

'-': turn left

'+': turn right

'u': rotate up

'd': rotate down

'l': roll left

'/': roll right

'[':push matrix

']': pop matrix

Releases

No releases published

Packages

No packages published

Languages