PageRenderTime 446ms CodeModel.GetById 103ms app.highlight 108ms RepoModel.GetById 141ms app.codeStats 1ms

/GhettoduinoOutline.eps

http://github.com/danheidel/Ghettoduino
Unknown | 141 lines | 127 code | 14 blank | 0 comment | 0 complexity | f30d55263d032a8ead8c8883bb8b59a7 MD5 | raw file
  1%!PS-Adobe-3.0 EPSF-3.0
  2%%Title: EAGLE Drawing E:/Documents/eagle/projects/Ghettoduino/ghettoduino.brd
  3%%Creator: EAGLE
  4%%Pages: 1
  5%%BoundingBox: 0 0 193 121
  6%%EndComments
  7
  8% Coordinate transfer:
  9
 10/EU { 254 div 0.072 mul } def
 11/inch { 72 mul } def
 12
 13% Linestyle:
 14
 151 setlinecap
 161 setlinejoin
 17
 18% Drawing functions:
 19
 20/l {  % draw a line
 21   /lw exch def
 22   /y2 exch def
 23   /x2 exch def
 24   /y1 exch def
 25   /x1 exch def
 26   newpath
 27   x1 EU y1 EU moveto
 28   x2 EU y2 EU lineto
 29   lw EU setlinewidth
 30   stroke
 31   } def
 32
 33/h {  % draw a hole
 34   /d  exch def
 35   /y  exch def
 36   /x  exch def
 37   d 0 gt {
 38     newpath
 39     x EU y EU d 2 div EU 0 360 arc
 40     currentgray dup
 41     1 exch sub setgray
 42     fill
 43     setgray
 44     } if
 45   } def
 46
 47/b {  % draw a bar
 48   /an exch def
 49   /y2 exch def
 50   /x2 exch def
 51   /y1 exch def
 52   /x1 exch def
 53   /w2 x2 x1 sub 2 div EU def
 54   /h2 y2 y1 sub 2 div EU def
 55   gsave
 56   x1 x2 add 2 div EU y1 y2 add 2 div EU translate
 57   an rotate
 58   newpath
 59   w2     h2     moveto
 60   w2 neg h2     lineto
 61   w2 neg h2 neg lineto
 62   w2     h2 neg lineto
 63   closepath
 64   fill
 65   grestore
 66   } def
 67
 68/c {  % draw a circle
 69   /lw exch def
 70   /rd exch def
 71   /y  exch def
 72   /x  exch def
 73   newpath
 74   lw EU setlinewidth
 75   x EU y EU rd EU 0 360 arc
 76   stroke
 77   } def
 78
 79/a {  % draw an arc
 80   /lc exch def
 81   /ae exch def
 82   /as exch def
 83   /lw exch def
 84   /rd exch def
 85   /y  exch def
 86   /x  exch def
 87   lw rd 2 mul gt {
 88     /rd rd lw 2 div add 2 div def
 89     /lw rd 2 mul def
 90     } if
 91   currentlinecap currentlinejoin
 92   lc setlinecap 0 setlinejoin
 93   newpath
 94   lw EU setlinewidth
 95   x EU y EU rd EU as ae arc
 96   stroke
 97   setlinejoin setlinecap
 98   } def
 99
100/p {  % draw a pie
101   /d exch def
102   /y exch def
103   /x exch def
104   newpath
105   x EU y EU d 2 div EU 0 360 arc
106   fill
107   } def
108
109/edge { 0.20710678119 mul } def
110
111/o {  % draw an octagon
112   /an exch def
113   /dy exch def
114   /dx exch def
115   /y  exch def
116   /x  exch def
117   gsave
118   x EU y EU translate
119   an dx dy lt { 90 add /dx dy /dy dx def def } if rotate
120   newpath
121      0 dx 2 div sub EU                    0 dy edge  add EU moveto
122      0 dx dy sub 2 div sub dy edge sub EU 0 dy 2 div add EU lineto
123      0 dx dy sub 2 div add dy edge add EU 0 dy 2 div add EU lineto
124      0 dx 2 div add EU                    0 dy edge  add EU lineto
125      0 dx 2 div add EU                    0 dy edge  sub EU lineto
126      0 dx dy sub 2 div add dy edge add EU 0 dy 2 div sub EU lineto
127      0 dx dy sub 2 div sub dy edge sub EU 0 dy 2 div sub EU lineto
128      0 dx 2 div sub EU                    0 dy edge  sub EU lineto
129   closepath
130   fill
131   grestore
132   } def
133
13461365 268366 5572 0 89.94 177.41 1 a
13555799 268618 55559 86216 0 l
13660639 85981 5085 0 177.35 270.00 1 a
13760639 80896 558526 80896 0 l
138558526 85976 5080 0 270.00 360.00 1 a
139563606 85976 563606 268856 0 l
140558524 268856 5082 0 0.00 90.00 1 a
141558524 273938 61371 273938 0 l