1 %! PostScript set of library objects for XCircuit
3 % Library name is: digital
4 % Author: R. Timothy Edwards <tim.edwards@multigig.com>
6 % XCircuitLib library built-in objects
11 (switch -glob @digit {[1,4,7] {color index @offcolor} default {expr @p_color}})
13 (switch @digit {2 {color index @offcolor} default {expr @p_color}})
15 (switch -glob @digit {[0,2,6,8] {expr @p_color} default {color index @offcolor}})
16 pop /p_col3 {1.000 1.000 1.000 }
17 (switch -glob @digit {[0-1,7] {color index @offcolor} default {expr @p_color}})
19 (switch -glob @digit {[5-6] {color index @offcolor} default {expr @p_color}})
21 (switch -glob @digit {[1-3,7] {color index @offcolor} default {expr @p_color}})
23 (switch @digit {1 - 4 {color index @offcolor} default {expr @p_color}})
24 pop /@offcolor (white) /@digit (0)
25 (lindex {0 1 2 3 4 5 6 7 8 9} 0) pop >> begingate
27 496 1.000 -36 -53 -28 -66 -20 -58 -20 -10 -28 -2 -36 -10 6 polygon
29 496 1.000 -36 10 -28 2 -20 10 -20 58 -28 66 -36 58 6 polygon
31 496 1.000 20 10 28 2 36 10 36 58 28 66 20 58 6 polygon
33 496 1.000 20 -58 28 -66 36 -58 36 -10 28 -2 20 -10 6 polygon
35 496 1.000 -26 -68 -18 -60 18 -60 26 -68 18 -76 -18 -76 6 polygon
37 496 1.000 -26 0 -18 8 18 8 26 0 18 -8 -18 -8 6 polygon
39 496 1.000 -26 68 -18 76 18 76 26 68 18 60 -18 60 6 polygon