tenolly / l-systems

This application is used to draw l-systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

l-systems

This application is used to draw l-systems. I have uploaded a few l-systems (they are located in the "app/systems" directory), but you can use your files (below is a guide on how to write l-system yourself).

Installation

  1. Download repository (or .zip file and unpack it):
git clone https://github.com/tenolly/l-systems.git
  1. Install dependencies:
pip install -r requirements.txt

Using

Run the main.pyw file (using a console, you must run it from the "app" directory). In the dialog window that appears, select a file with the l-system you want. How to use it: the vertical slider is responsible for the size of the l-system, and the horizontal slider is responsible for evolution's steps. Also, you can change color by clicking on the small square in the lower left corner. The rest is clear without explanation (note that the origin is the upper left corner).

How to make your own L-system

Create txt file. L-system's file structure:

  • The first line is the system name;
  • The second line is a rotation angle;
  • The third line is an axiom;
  • The rest are theorems.

Familiarize yourself with the contents of the files in the "app/systems" directory for more understanding.

About

This application is used to draw l-systems.

License:MIT License


Languages

Language:Python 100.0%