Skip to content

Implementation of the context-free Lindenmayer systems to create fractals

Notifications You must be signed in to change notification settings

SHA-T/lindenmayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lindenmayer-System

This is an implementation of the context-free Lindenmayer system to create fractals.

A lot of natural phenomena like the looks of trees or snowflakes can be described by Lindenmayer fractals. Those fractals reproduce themself recursively with the same patterns and eventually create structures we know from nature.

You can create your own fractals in the main.cpp where you specify the initial word and the production rules. The results will be saved as svg-files in the 'results' folder. In the folder 'examples' are some examples of common fractals.

Examples

Fractal Tree:

Stage 1 Stage 2 Stage 3
image image image
Stage 4 Stage 5
image image

Fractal Koch Snowflake:

Stage 1 Stage 2 Stage 3
image image image
Stage 4 Stage 5 Stage 6
image image image

Requirements

This program was tested on

  • Fedora 33, 64-Bit
  • GCC 10

but might also work on other versions

About

Implementation of the context-free Lindenmayer systems to create fractals

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published