File: mtree.cfdg

package info (click to toggle)
contextfree 3.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,448 kB
  • sloc: cpp: 37,995; lex: 414; makefile: 123; sh: 43; python: 34
file content (29 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (5)
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
startshape PLANT

shape PLANT
{
	EITHER [x -2]
	EITHER [x 2]
}

shape BOTH
{
	BL [rotate 30]
	BL [rotate -30 flip 90]
}

shape EITHER
rule {BL[]}
rule {BL[flip 90]}

shape BL
{
	CIRCLE []
	WL [size 0.95 y 1.6]
}

shape WL
rule 10 {BL [rotate randint(3, 8)]}
rule {BOTH []}
rule {BL [rotate -10 flip 90]}