File: recttest.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 (41 lines) | stat: -rw-r--r-- 767 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
29
30
31
32
33
34
35
36
37
38
39
40
41
startshape rect

path rect {
	// anisotropically stretched
	// with default stroke
	MOVETO {x 0.5 y 0.5}
	3* {r 90} LINETO {x -0.5 y 0.5}
	CLOSEPOLY{}
	STROKE{s 1 2}
	MOVETO {x 0.5}
	ARCTO{x -0.5 r 0.5}
	ARCTO{x 0.5 r 0.5}
	CLOSEPOLY{}
	STROKE{s 1 2 y 3}

	// isotropically stretched
	// with default stroke
	MOVETO {x 0.5 y 1}
	LINETO {x -0.5 y 1}
	LINETO {x -0.5 y -1}
	LINETO {x 0.5 y -1}
	CLOSEPOLY{}
	STROKE{x 2}
	MOVETO {x 0.5}
	ARCTO{x -0.5 rx 0.5 ry 1}
	ARCTO{x 0.5 rx 0.5 ry 1}
	CLOSEPOLY{}
	STROKE{x 2 y 3}

	// anisotropically stretched
	// with isowidth stroke
	MOVETO {x 0.5 y 0.5}
	3* {r 90} LINETO {x -0.5 y 0.5}
	CLOSEPOLY{}
	STROKE{x 4 s 1 2 p iso}
	MOVETO {x 0.5}
	ARCTO{x -0.5 r 0.5}
	ARCTO{x 0.5 r 0.5}
	CLOSEPOLY{}
	STROKE{s 1 2 x 4 y 3 p iso}
}