https://github.com/robertkist/lsystems_py
L-Systems visualization with Python and Qt
https://github.com/robertkist/lsystems_py
l-systems python python3 qt
Last synced: 7 months ago
JSON representation
L-Systems visualization with Python and Qt
- Host: GitHub
- URL: https://github.com/robertkist/lsystems_py
- Owner: robertkist
- License: mit
- Created: 2021-10-24T15:23:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-17T14:43:03.000Z (about 3 years ago)
- Last Synced: 2025-01-16T02:21:34.585Z (9 months ago)
- Topics: l-systems, python, python3, qt
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# L-Systems Exploration
A simple L-System generator written in pure Python, with a PySide2 / Qt GUI front-end. This project started out as a
side-exploration into space filling curves and plant/tree generation.Run ```src/main_gui.py```. There is no need to run the Makefile, except for running the tests and rebuilding the GUI (Unix-likes only).
### Screenshot
## L-Systems
You can find the axioms, rules and angles for each l-system in the ```src/data/lsystems.json``` file.
Some of the featured l-systems may be unstable - their shapes maybe inverted or other irregularities will
appear between odd and even iteration depths.### Space filling curves
Hilbert curve
Hilbert curve variation
![]()
![]()
Peano curve
FASS curve 1
FASS spiral
Quadratic Gosper curve
![]()
![]()
![]()
![]()
FASS curve 0
FASS curve 2
![]()
![]()
### Trees
Most tree l-systems are from Lindenmayer, A. and Prusinkiewicz, P. (1990) *The Algorithmic Beauty of Plants*.
Houdini Tree
Tree X
Tree B
![]()
![]()
![]()
Tree C
Tree D
Tree E
![]()
![]()
![]()
Tree Y
Tree F
Tree A
![]()
![]()
![]()
### Circular Shapes & Snowflakes
Note: the Gosper's curve is also a space filling curve.
Koch Snowflake
Snowflake 1
Snowflake 2
![]()
![]()
![]()
Bourke Pentaplexy
McWorter Pentigree
Gary Teachout Hex-7-b
![]()
![]()
![]()
McWorter Penta Snowflake 1
McWorter Penta Snowflake 2
Anthony Hanmer ADH231a
![]()
![]()
![]()
Mariano Doily Circle
Gosper's curve
Levy curve
![]()
![]()
![]()
### Rectangular Shapes
Fake Peano
Serpinski Curve 1
Box Fractal
![]()
![]()
![]()
McWorter Serpinski Box (unstable)
Serpinski Curve 2
Box Crystal
![]()
![]()
![]()
Ice Fractals
Serpinski Carpet
![]()
![]()
### Triangle Shapes
Serpinski Triangle
Triangle A
Anthony Hanmer ADH258a
![]()
![]()
![]()
### Dragon Shapes
Dragon Curve
McWorter Terdragon
![]()
![]()
### Quadratic Koch Curves
Koch curve 1
Koch Island 1
Koch Island 2
![]()
![]()
![]()
Koch curve 2
Koch curve 2 (flipped)
![]()
![]()
### Misc Shapes
Mosaic
Anthony Hanmer ADH256a
![]()
![]()
Zaikov
Unnamed
![]()
![]()
Koch Curve
Quadratic Snowflake
![]()
![]()