36 lines
466 B
Markdown
36 lines
466 B
Markdown
|
# Lindenmayer Turtle Generator
|
||
|
|
||
|
draws a lindenmayer system using simple turtle graphics.
|
||
|
|
||
|
currently very basic, models the following system:
|
||
|
|
||
|
```
|
||
|
# genesis
|
||
|
X
|
||
|
|
||
|
# rules
|
||
|
F -> FF
|
||
|
X -> X -> F-[[X]+X]+F[+FX]-X
|
||
|
```
|
||
|
|
||
|
is also slow and badly written, ¯\_(ツ)_/¯
|
||
|
|
||
|
## dependencies
|
||
|
|
||
|
```
|
||
|
raco pkg install htdp-lib
|
||
|
raco pkg install pict-lib
|
||
|
```
|
||
|
|
||
|
## running
|
||
|
|
||
|
> WARNING: will overwrite 'test-plant.png' in working directory
|
||
|
|
||
|
```
|
||
|
racket lindenmayer.rkt
|
||
|
```
|
||
|
|
||
|
## author
|
||
|
|
||
|
theArborist
|