-
Notifications
You must be signed in to change notification settings - Fork 1
/
spec.txt
87 lines (66 loc) · 1.14 KB
/
spec.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
startshape fract
rule fract {
TRIANGLE { }
fract { y .288 s .5 b 1}
fract { s .5 r 180 b -1 }
fract { x -.25 y -.144 s .5 b 1}
fract { x .25 y -.144 s .5 b 1}
}
rule fract .5 {}
----------------------
{
startshape: "fract",
fract:
[
{ weight: 1, draw:
[
{shape:"TRIANGLE"},
{shape:"fract", y: .288, s:.5, b:1},
{shape:"fract", s: .5, r:180, b:-1},
{shape:"fract", x:-.25, y:-.144 s:.5, b:-1},
{shape:"fract", x: .25, y: -.144, s:.5, b:1},
]
},
{ weight: .5, draw:[] }
]
}
---------------------------
startshape tree
rule tree {
CIRCLE { s .5 1.2 }
tree { s .97 y .3 r 3}
}
rule tree .1 {
tree { flip 90 } }
rule tree .1 {
tree { r 10 }
tree { r -30 s .6} }
---
{
startshape: "tree",
tree:
[
{weight: 1, draw:[
{shape: "CIRCLE", s:[.5, 1.2]},
{shape: "tree", s:.97, y:.3, r:3},
]},
{weight: .1, draw:[{shape: "tree", flip:90 }]},
{weight: .1, draw:[
{shape: "tree", r:10},
{shape: "tree", r: -30, s:.6}
]}
]
}
----------------------
startshape aza
rule aza {
TRIANGLE{}
}
---
{
startshape: "aza",
aza:
[
{weight: 1, draw:[{shape:"TRIANGLE"}]}
]
}