-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ygl
52 lines (45 loc) · 891 Bytes
/
test.ygl
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
startshape FOREST
shape FOREST
{
SEED []
SEED [rotate 0 x -20 y 0 hue 0]
SEED [x -40 b 0 ]
}
shape SEED
rule {BRANCH []}
rule {BRANCH [rotate 1]}
rule {BRANCH [rotate -1]}
rule {BRANCH [rotate 2]}
rule {BRANCH [rotate -2]}
rule {FORK []}
shape BRANCH
rule {LEFTBRANCH [flip 90]}
rule {LEFTBRANCH []}
shape LEFTBRANCH
rule 4 {BLOCK [] LEFTBRANCH [y 0.885 rotate 0.1 size 0.99]}
rule 4 {BLOCK [] LEFTBRANCH [y 0.885 rotate 0.2 size 0.99]}
rule {BLOCK [] LEFTBRANCH [y 0.885 rotate 4 size 0.99]}
rule {BLOCK [] FORK []}
shape BLOCK
{
SQUARE [rotate 1]
SQUARE [rotate -1]
SQUARE []
}
shape FORK
rule {
BRANCH [ ]
BRANCH [size 0.5 rotate 40]
}
rule {
BRANCH [ ]
BRANCH [size 0.5 rotate -40]
}
rule {
BRANCH [size 0.5 rotate -20]
BRANCH [ ]
}
rule {
BRANCH [size 0.7 y 0.1 rotate 20]
BRANCH [size 0.7 y 0.1 rotate -20]
}