An open API service indexing awesome lists of open source software.

https://github.com/akihiko47/trees-generator

Random tree generator using turtle, python, and L-systems
https://github.com/akihiko47/trees-generator

generative-art l-systems python turtle

Last synced: 6 months ago
JSON representation

Random tree generator using turtle, python, and L-systems

Awesome Lists containing this project

README

          

# 🌳 Trees Generator 🌳

![tree](https://github.com/akihiko47/Trees-Generator/blob/main/trees/first_tree.png?raw=true)

A random tree generator using turtle, python, and L-systems. You can see examples of generated trees in the `trees` folder

## Usage
1. You can copy the directory to make changes using ```git clone https://github.com/akihiko47/Trees-Generator.git``` or download `.zip` arichve.
2. Configure settings
3. Wait for result

## Settings
1. `end_gen = 11` The last generation in the algorithm. The larger the value, the more beautiful the trees will be, but they will take much longer to generate.
2. `angle = 15` Standard branch offset angle. The larger the value, the wider the tree will be.
3. `rand_angle_max = 13` The maximum value of the random deviation of the branches. The larger the value, the more random the trees will be.
4. `thick = 16` Width of the tree trunk.
5. `dist = 10` Length of tree branches.

## Contributions
Contributions are welcomed! 👋