Add example L-systems as JSON files

This commit is contained in:
Dimitri Lozeve 2018-01-17 22:18:47 +00:00
parent 55e0f0d82c
commit 3c5ef50b13
11 changed files with 397 additions and 0 deletions

43
examples/tree.json Normal file
View file

@ -0,0 +1,43 @@
{
"name": "tree",
"alphabet": "AB+-[]",
"axiom": "A",
"rules": [
[
"B",
"BB"
],
[
"A",
"B[+A]-A"
]
],
"angle": 45.0,
"distance": 1.0,
"representation": [
[
"A",
"Forward"
],
[
"B",
"Forward"
],
[
"+",
"TurnRight"
],
[
"-",
"TurnLeft"
],
[
"[",
"Push"
],
[
"]",
"Pop"
]
]
}