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

67
examples/penroseP3.json Normal file
View file

@ -0,0 +1,67 @@
{
"name": "penroseP3",
"alphabet": "MNOPA+-[]",
"axiom": "[N]++[N]++[N]++[N]++[N]",
"rules": [
[
"M",
"OA++PA----NA[-OA----MA]++"
],
[
"N",
"+OA--PA[---MA--NA]+"
],
[
"O",
"-MA++NA[+++OA++PA]-"
],
[
"P",
"--OA++++MA[+PA++++NA]--NA"
],
[
"A",
""
]
],
"angle": 36.0,
"distance": 10.0,
"representation": [
[
"M",
"Forward"
],
[
"N",
"Forward"
],
[
"O",
"Forward"
],
[
"P",
"Forward"
],
[
"A",
"Forward"
],
[
"+",
"TurnRight"
],
[
"-",
"TurnLeft"
],
[
"[",
"Push"
],
[
"]",
"Pop"
]
]
}