File: transformtest.cfdg

package info (click to toggle)
contextfree 3.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,432 kB
  • sloc: cpp: 34,857; lex: 416; makefile: 124; sh: 42; python: 41
file content (28 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (4)
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
startshape trtest
size {s 10}
rule trtest {
	sq{a -0.5}
	sq{a -0.5 trans 0.5}

	sq{a -0.5 trans (2, -2)}
	sq{a -0.5 trans (2.5, -1.5) }

	sq{trans (-2, -2) }
	sq{b 0.5 transform (-1.5, -1.5) z -1 }

	sq{a -0.5 trans (2, 2)}
	sq{a -0.5 trans (2.5, 2.5, 3.5, 3.0)}

	sq{a -0.5 trans (-2, 2)}
	sq{a -0.5 trans (-1.5, 2.5, -0.5, 3.0, 0.0, 3.5)}
}


path sq {
	MOVETO{x 0 y 0}
	LINETO{x 1 y 0}
	LINETO{x 1 y 1}
	LINETO{x 0 y 1}
	CLOSEPOLY{}
	FILL{}
}