https://github.com/lovasoa/lsystems
Haskell implementation of l systems
https://github.com/lovasoa/lsystems
Last synced: 4 months ago
JSON representation
Haskell implementation of l systems
- Host: GitHub
- URL: https://github.com/lovasoa/lsystems
- Owner: lovasoa
- License: gpl-3.0
- Created: 2016-04-28T22:09:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-30T06:20:09.000Z (over 9 years ago)
- Last Synced: 2025-08-13T19:43:13.287Z (5 months ago)
- Language: Haskell
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# L-Systems
Haskell implementation of [L-systems](https://en.wikipedia.org/wiki/L-system)

## Usage
#### Command
```
./lsystem < ./examples/algae.txt
```
#### Source format
Contents of `algae.txt`
```
Algae {
Axiom A
A = AB
B = A
}
```
#### Result
```
A
AB
ABA
ABAAB
ABAABABA
ABAABABAABAAB
ABAABABAABAABABAABABA
ABAABABAABAABABAABABAABAABABAABAAB
...
```
(it never stops)
# Generate images
```sh
./lsystem < examples/plant.txt | ./turtle_interpretation 20 > tes.svg
```