| 1 |
%%%% |
| 2 |
%%%% This file belongs to the ROEX package. |
| 3 |
%%%% |
| 4 |
%%% draw write_preamble write_postamble find_BB set_BB fill_C draw_C |
| 5 |
%%% draw fix_fill_cmyk fix_draw_cmyk |
| 6 |
% ES-03.MF, ``COGWHEEL'': |
| 7 |
% Expanding stroke applied to a somewhat complex object, |miter_size| |
| 8 |
% set to zero. |
| 9 |
% --- |
| 10 |
input mftoeps; eps_mode_setup; input roex; tracingexpanding:=1; |
| 11 |
% --- |
| 12 |
vardef flex_polyg(expr n,a) = |
| 13 |
save zz; pair zz[\\]; |
| 14 |
for i:=0 upto n-1: |
| 15 |
zz[i]:=up rotated (i*(360/n)); |
| 16 |
endfor |
| 17 |
(zz0 |
| 18 |
for i:=1 upto n: |
| 19 |
{(zz[i mod n]-zz[i-1]) rotated a}..{(zz[i mod n]-zz[i-1]) rotated -a} |
| 20 |
if i=n: cycle else: zz[i] fi |
| 21 |
endfor |
| 22 |
) scaled .5 |
| 23 |
enddef; |
| 24 |
% --- |
| 25 |
beginchar("0",in#,in#,0); |
| 26 |
b:=.5mm; path p; p=flex_polyg(17,60) scaled w shifted (1/2w,1/2h); |
| 27 |
miter_size:=0bp; expand_stroke (p) (b) R; |
| 28 |
% miter_size:=0bp; change_weight(p) (b) R; |
| 29 |
find_BB R1,R2; |
| 30 |
write_preamble jobname; |
| 31 |
draw_C R1,R2; |
| 32 |
write_postamble; |
| 33 |
for i:=1,2: |
| 34 |
if proofing>0: |
| 35 |
for j:=0 upto length(R[i])-1: |
| 36 |
makelabel(decimal(j) & "/" & decimal(i),point j of R[i]); |
| 37 |
endfor |
| 38 |
fi |
| 39 |
endfor |
| 40 |
endchar; |
| 41 |
end. |
| 42 |
%%\end |
| 43 |
|