1 // This file is automatically generated.  Do not edit.
2 
3 static char const* psp_before =
4 "%!PS-Adobe-2.0 EPSF-2.0\n"
5 "%%Creator: MagicCube4D\n"
6 "%%Title: \n"
7 "%%CreationDate: $Date: 2002/02/01 09:31:26 $\n"
8 "%%Orientation: Portrait\n"
9 "%%BoundingBox: 0 0 432 432\n"
10 "%%Pages: 0\n"
11 "%%EndComments\n"
12 "%\n"
13 "% Created from\n"
14 "%\n"
15 "% $Id: prolog.ps,v 1.3 2002/02/01 09:31:26 ejb Exp $\n"
16 "% $Source: /home/ejb/source/magiccube4d/CVSroot/src/prolog.ps,v $\n"
17 "% $Author: ejb $\n"
18 "%\n"
19 "\n"
20 "%%BeginProlog\n"
21 "\n"
22 "% -------------\n"
23 "\n"
24 "% Users may edit color definitions here.  All colors are RGB values\n"
25 "% between 0 and 1.\n"
26 "\n"
27 "/colors\n"
28 "[\n"
29 "  [ 0 .5 1 ]\n"
30 "  [ .5 0 1 ]\n"
31 "  [ 1 .666 .333 ]\n"
32 "  [ 1 .2 .2 ]\n"
33 "  [ 1 .666 .866 ]\n"
34 "  [ .5 1 1 ]\n"
35 "  [ 1 1 .5 ]\n"
36 "  [ 0 1 .5 ]\n"
37 "] def\n"
38 "\n"
39 "/bgcolor { .02 .123 .041 setrgbcolor } def\n"
40 "\n"
41 "% -------------\n"
42 "\n"
43 "/ed { exch def } bind def\n"
44 "\n"
45 "/width 432 def\n"
46 "/height width def\n"
47 "\n"
48 "/hm { height exch sub } bind def\n"
49 "\n"
50 "/outlines true def\n"
51 "\n"
52 "\n"
53 "/drawBackground\n"
54 "{\n"
55 "  newpath\n"
56 "    0 0 moveto\n"
57 "    width 0 rlineto\n"
58 "    0 height rlineto\n"
59 "    width neg 0 rlineto\n"
60 "    0 height neg rlineto\n"
61 "    closepath\n"
62 "    bgcolor\n"
63 "  fill\n"
64 "} def\n"
65 "\n"
66 "/drawPolygon\n"
67 "{\n"
68 "  10 dict begin\n"
69 "    hm /y4 ed\n"
70 "    /x4 ed\n"
71 "    hm /y3 ed\n"
72 "    /x3 ed\n"
73 "    hm /y2 ed\n"
74 "    /x2 ed\n"
75 "    hm /y1 ed\n"
76 "    /x1 ed\n"
77 "    /brightness ed\n"
78 "    /color ed\n"
79 "    newpath\n"
80 "      1 setlinejoin\n"
81 "      1 setlinecap\n"
82 "      x1 y1 moveto\n"
83 "      x2 y2 lineto\n"
84 "      x3 y3 lineto\n"
85 "      x4 y4 lineto\n"
86 "      x1 y1 lineto\n"
87 "      closepath\n"
88 "      outlines\n"
89 "      {\n"
90 "        gsave\n"
91 "      } if\n"
92 "      colors color get aload pop\n"
93 "      3 { brightness mul 3 1 roll } repeat\n"
94 "      setrgbcolor\n"
95 "    fill\n"
96 "    outlines\n"
97 "    {\n"
98 "      grestore\n"
99 "      0 setlinewidth\n"
100 "      0 setgray stroke\n"
101 "    } if\n"
102 "  end\n"
103 "} def\n"
104 "\n"
105 "%%EndProlog\n"
106 "\n"
107 "%%Page: 1 1\n"
108 "\n"
109 ;
110 static char const* psp_after =
111 "\n"
112 "%%Trailer\n"
113 "\n"
114 "%%EOF\n"
115 ;
116