File: dfd.ps

package info (click to toggle)
graphviz 14.1.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 139,440 kB
  • sloc: ansic: 142,129; cpp: 11,960; python: 7,770; makefile: 4,043; yacc: 3,030; xml: 2,972; tcl: 2,495; sh: 1,388; objc: 1,159; java: 560; lex: 423; perl: 243; awk: 156; pascal: 139; php: 58; ruby: 49; cs: 31; sed: 1
file content (31 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (21)
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
/xdef {exch def} bind def
/DFDbox {
	10 dict begin
		/fflag xdef
		/sides xdef
		dup
		aload pop
		% draw the sides
		newpath
		moveto
		1 1 sides {
			2 mod 0 ne
			{moveto} % even sides
			{lineto currentpoint stroke moveto} % odd sides
			ifelse
		} for
		fflag   % if shape is filled
		{
			aload pop
			newpath
			moveto
			/y1 xdef
			/x1 xdef
			lineto stroke newpath
			x1 y1 moveto lineto stroke
			pop pop
		}
		{pop}
		ifelse
	end
} bind def