Rev 4926 | Rev 9966 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | # Basic electronic component data definitions. |
2 | |||
3 | ########## Basic definitions. ############# |
||
4 | |||
4926 | bpr | 5 | comp_all=acsrc,and,arrow,_Arrow,bat,buf,cap,\ |
6 | chas,close,coil,del,diode,_Diode,gen,\ |
||
7 | gnd,iarrow,_iArrow,inv,isrc,lamp,meter,nand,nor,npn,npn2,\ |
||
20 | reyssat | 8 | open,or,pnp,pnp2,res,res2,src,\ |
4926 | bpr | 9 | term,term2,wire,xnor,xor,zener,_Zener |
20 | reyssat | 10 | |
11 | comp_notext=wire num color |
||
12 | |||
13 | comp_norotate=acsrc meter num |
||
14 | |||
15 | ############### Subroutines ################## |
||
16 | |||
17 | comp_transistor=lines _color_,-1,0,-0.9,0,-0.1,0.8,0.1,0.8,0.9,0,1,0\ |
||
9965 | bpr | 18 | segment 0,1,0,0.8,_color_\ |
19 | segment -0.6,0.8,0.6,0.8,_color_ |
||
20 | reyssat | 20 | comp_transistor2=lines _color_,-1,0,-0.9,0,-0.1,-0.8,0.1,-0.8,0.9,0,1,0\ |
9965 | bpr | 21 | segment 0,-1,0,-0.8,_color_\ |
22 | segment -0.6,-0.8,0.6,-0.8,_color_ |
||
20 | reyssat | 23 | |
24 | ######## Start of component drawing data. ###########3 |
||
25 | |||
26 | comp_acsrc=ellipse 0,0,2,2,_color_\ |
||
27 | curve _color_,-0.6+1.2*t,0.4*sin(2*pi*t) |
||
28 | |||
29 | comp_and=lines _color_,0,0.7,-1,0.7,-1,-0.7,0,-0.7\ |
||
30 | plot _color_,0.65*sin(pi*t),0.7*cos(pi*t)\ |
||
9965 | bpr | 31 | segment 0.65,0,1,0,_color_ |
20 | reyssat | 32 | |
33 | comp_arrow=triangle -1,0.4,-1,-0.4,-0.1,0,_color_ |
||
34 | |||
4926 | bpr | 35 | comp__Arrow=ftriangle -1,0.4,-1,-0.4,-0.1,0,_color_ |
20 | reyssat | 36 | |
37 | comp_bat=parallel -1,0,-0.6,0,1.6,0,2,_color_\ |
||
38 | parallel 0.6,-0.7,0.6,0.7,-0.8,0,2,_color_\ |
||
39 | parallel 0.2,-0.3,0.2,0.3,-0.8,0,2,_color_ |
||
40 | |||
41 | comp_buf=triangle -0.55,0.5,-0.55,-0.5,0.55,0,_color_\ |
||
9965 | bpr | 42 | segment -1,0,-0.55,0,_color_\ |
43 | segment 0.55,0,1,0,_color_ |
||
20 | reyssat | 44 | |
45 | comp_cap=parallel -1,0,-0.2,0,1.2,0,2,_color_\ |
||
46 | parallel -0.2,-0.7,-0.2,0.7,0.4,0,2,_color_ |
||
47 | |||
9965 | bpr | 48 | comp_chas=segment 1,0,0.6,0,_color_\ |
20 | reyssat | 49 | triangle 0.6,-0.6,0.6,0.6,0.1,0,_color_ |
50 | |||
51 | comp_close=parallel -1,0,-0.7,0,1.7,0,2,_color_\ |
||
52 | ellipse -0.5,0,0.4,0.4,_color_\ |
||
53 | ellipse 0.5,0,0.4,0.4,_color_\ |
||
9965 | bpr | 54 | segment -0.7,0.2,0.7,0.2,_color_ |
20 | reyssat | 55 | |
56 | comp_coil=parallel -1,0,-0.875,0,1.875,0,2,_color_\ |
||
57 | curve _color_,-0.15*cos(7*pi*t)+1.44*t-0.72,0.3*sin(7*pi*t) |
||
58 | |||
59 | comp_color=!nosubst frect -1,-1,1,1,$slib_text |
||
60 | |||
61 | comp_diode=parallel -1,0,-0.3,0,1.3,0,2,_color_\ |
||
9965 | bpr | 62 | segment 0.3,-0.5,0.3,0.5,_color_\ |
20 | reyssat | 63 | triangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_ |
64 | |||
4926 | bpr | 65 | comp__Diode=parallel -1,0,-0.3,0,1.3,0,2,_color_\ |
9965 | bpr | 66 | segment 0.3,-0.5,0.3,0.5,_color_\ |
20 | reyssat | 67 | ftriangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_ |
68 | |||
4926 | bpr | 69 | comp_del=parallel -1,0,-0.3,0,1.3,0,2,_color_\ |
9965 | bpr | 70 | segment 0.3,-0.5,0.3,0.5,_color_\ |
4926 | bpr | 71 | triangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_\ |
72 | arrow -0.15,0.55,0.1,0.9,7,_color_\ |
||
73 | arrow 0.1,0.4,0.35,0.75,7,_color_ |
||
74 | |||
75 | comp_gen=parallel -1,0,-0.2,0,1.2,0,2,_color_\ |
||
9965 | bpr | 76 | segment -0.2,-0.7,-0.2,0.7,_color_\ |
77 | segment 0.2,-0.3,0.2,0.3,_color_ |
||
4926 | bpr | 78 | |
9965 | bpr | 79 | comp_gnd=segment 1,0,0.6,0,_color_\ |
80 | segment 0.6,-0.7,0.6,0.7,_color_\ |
||
81 | segment 0.35,-0.4,0.35,0.4,_color_\ |
||
82 | segment 0.1,-0.1,0.1,0.1,_color_ |
||
20 | reyssat | 83 | |
9965 | bpr | 84 | comp_iarrow=segment -1,0,1,0,_color_\ |
20 | reyssat | 85 | lines _color_,-0.4,0.25,0.4,0,-0.4,-0.25 |
86 | |||
9965 | bpr | 87 | comp__iArrow=segment -1,0,1,0,_color_\ |
20 | reyssat | 88 | ftriangle -0.4,0.25,0.4,0,-0.4,-0.25,_color_ |
89 | |||
90 | comp_inv=triangle -0.55,0.5,-0.55,-0.5,0.55,0,_color_\ |
||
9965 | bpr | 91 | segment -1,0,-0.55,0,_color_\ |
20 | reyssat | 92 | ellipse 0.75,0,0.4,0.4,_color_\ |
9965 | bpr | 93 | segment 0.95,0,1,0,_color_ |
20 | reyssat | 94 | |
95 | comp_isrc=ellipse 0,0,2,2,_color_\ |
||
96 | arrow -0.6,0,0.6,0,$slib_dotwidth,_color_ |
||
97 | |||
98 | comp_lamp=ellipse 0,0,1.42,1.42,_color_\ |
||
9965 | bpr | 99 | segment -0.5,-0.5,0.5,0.5,_color_\ |
100 | segment -0.5,0.5,0.5,-0.5,_color_\ |
||
20 | reyssat | 101 | parallel -1,0,-0.71,0,1.71,0,2,_color_ |
102 | |||
103 | comp_meter=ellipse 0,0,2,2,_color_\ |
||
9965 | bpr | 104 | segment -0.8,-0.55,0.8,-0.55,_color_\ |
20 | reyssat | 105 | arrow -0.1,-0.5,0.4,0.5,$slib_dotwidth,_color_ |
106 | |||
107 | comp_nand=lines _color_,0,0.7,-1,0.7,-1,-0.7,0,-0.7\ |
||
108 | plot _color_,0.65*sin(pi*t),0.7*cos(pi*t)\ |
||
109 | ellipse 0.825,0,0.35,0.35,_color_ |
||
110 | |||
111 | comp_nor=curve _color_,-0.15*(2*t-1)^2-0.85,0.7-1.4*t\ |
||
112 | curve _color_,t*1.65-1,0.7-0.7*t^3\ |
||
113 | curve _color_,t*1.65-1,-0.7+0.7*t^3\ |
||
114 | ellipse 0.825,0,0.35,0.35,_color_ |
||
115 | |||
116 | comp_num=!nosubst text _color_,-0.15,0.3,$slib_textsize,$slib_i |
||
117 | |||
118 | comp_npn=$comp_transistor\ |
||
119 | arrow -0.1,0.8,-0.9,0,$slib_dotwidth,_color_ |
||
120 | |||
121 | comp_npn2=$comp_transistor2\ |
||
122 | arrow -0.1,-0.8,-0.9,0,$slib_dotwidth,_color_ |
||
123 | |||
124 | comp_open=parallel -1,0,-0.7,0,1.7,0,2,_color_\ |
||
125 | ellipse -0.5,0,0.4,0.4,_color_\ |
||
126 | ellipse 0.5,0,0.4,0.4,_color_\ |
||
9965 | bpr | 127 | segment -0.7,0.6,0.7,0.6,_color_ |
20 | reyssat | 128 | |
129 | comp_or=curve _color_,-0.15*(2*t-1)^2-0.85,0.7-1.4*t\ |
||
130 | curve _color_,t*1.65-1,0.7-0.7*t^3\ |
||
131 | curve _color_,t*1.65-1,-0.7+0.7*t^3\ |
||
9965 | bpr | 132 | segment 0.65,0,1,0,_color_ |
20 | reyssat | 133 | |
134 | comp_pnp=$comp_transistor\ |
||
135 | arrow 0.9,0,0.1,0.8,$slib_dotwidth,_color_ |
||
136 | |||
137 | comp_pnp2=$comp_transistor2\ |
||
138 | arrow 0.9,0,0.1,-0.8,$slib_dotwidth,_color_ |
||
139 | |||
140 | comp_res=lines _color_,-1,0,-0.75,0,-0.625,-0.3,-0.375,0.3,-0.125,-0.3,0.125,0.3,0.375,-0.3,0.625,0.3,0.75,0,1,0 |
||
141 | |||
142 | comp_res2=parallel -1,0,-0.75,0,1.75,0,2,_color_\ |
||
143 | rectangle -0.75,-0.3,0.75,0.3,_color_ |
||
144 | |||
145 | comp_src=ellipse 0,0,2,2,_color_ |
||
146 | |||
9965 | bpr | 147 | comp_term=segment 0.5,0,1,0,_color_\ |
20 | reyssat | 148 | ellipse 0.3,0,0.4,0.4,_color_ |
149 | |||
150 | comp_term2=ellipse -0.8,0,0.4,0.4,_color_\ |
||
151 | ellipse 0.8,0,0.4,0.4,_color_ |
||
152 | |||
9965 | bpr | 153 | comp_wire=segment -1,0,1,0,_color_ |
20 | reyssat | 154 | |
155 | comp_xnor=curve _color_,-0.15*(2*t-1)^2-0.85,0.7-1.4*t\ |
||
156 | curve _color_,-0.15*(2*t-1)^2-0.65,0.7-1.4*t\ |
||
157 | curve _color_,t*1.45-0.8,0.7-0.7*t^3\ |
||
158 | curve _color_,t*1.45-0.8,-0.7+0.7*t^3\ |
||
159 | ellipse 0.825,0,0.35,0.35,_color_ |
||
160 | |||
161 | comp_xor=curve _color_,-0.15*(2*t-1)^2-0.85,0.7-1.4*t\ |
||
162 | curve _color_,-0.15*(2*t-1)^2-0.65,0.7-1.4*t\ |
||
163 | curve _color_,t*1.45-0.8,0.7-0.7*t^3\ |
||
164 | curve _color_,t*1.45-0.8,-0.7+0.7*t^3\ |
||
9965 | bpr | 165 | segment 0.65,0,1,0,_color_ |
20 | reyssat | 166 | |
167 | comp_zener=parallel -1,0,-0.3,0,1.3,0,2,_color_\ |
||
168 | lines _color_,0.5,0.6,0.3,0.4,0.3,-0.4,0.1,-0.6\ |
||
169 | triangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_ |
||
170 | |||
4926 | bpr | 171 | comp__Zener=parallel -1,0,-0.3,0,1.3,0,2,_color_\ |
20 | reyssat | 172 | lines _color_,0.5,0.6,0.3,0.4,0.3,-0.4,0.1,-0.6\ |
173 | ftriangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_ |
||
174 | |||
175 | ############# End of definitions ################## |