| 1 |
% interdigitrodes.mp |
| 2 |
% L. Nobre G. |
| 3 |
% 2012 |
| 4 |
|
| 5 |
prologues := 1; |
| 6 |
|
| 7 |
beginfig(1); |
| 8 |
numeric u, t, i, j, len; |
| 9 |
u = 1mm; |
| 10 |
t = 4u; |
| 11 |
i = 1u; |
| 12 |
len = 2*(t+i); |
| 13 |
path basepath; |
| 14 |
basepath = ((0,0.5t)---(3len,0.5t)--(3len,-0.5t)---(0,-0.5t)..cycle) |
| 15 |
shifted (-len,0.5*(t+i)); |
| 16 |
fill basepath; |
| 17 |
fill basepath shifted (0,len); |
| 18 |
fill basepath shifted (0,-len); |
| 19 |
fill basepath shifted (0,-2len); |
| 20 |
fill (2len,-2len)--(3len,-2len)--(3len,2len)--(2len,2len)--cycle; |
| 21 |
draw currentpicture rotated 180 withcolor 0.333white; |
| 22 |
endfig; |
| 23 |
|
| 24 |
end. |