| 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 |
% RO-03.MF, ``ENCIRCLED CROSS 2'': |
| 7 |
% An example very similar to RO-02.MF; removing overlaps applied to |
| 8 |
% a negatively oriented circle and two positively oriented rectangles, |
| 9 |
% background colour is set to |1| (default is |0|). |
| 10 |
% --- |
| 11 |
input mftoeps; eps_mode_setup; input roex; tracingremoving:=1; |
| 12 |
% --- |
| 13 |
beginchar("0",in#,in#,0); |
| 14 |
path A,B,C; |
| 15 |
A=reverse fullcircle scaled w shifted (1/2w,1/2h); |
| 16 |
B=unitsquare xscaled 1/5w yscaled 3/5w shifted (2/5w,1/5w); |
| 17 |
C=B rotatedaround((1/2w,1/2h), 90); |
| 18 |
background_color:=1; remove_overlap (A,B,C) () R; |
| 19 |
set_BB 0,0,w,h; |
| 20 |
write_preamble jobname; |
| 21 |
for i:=1 upto R.num: |
| 22 |
fix_draw_cmyk if check_turn(R[i])>0: 0,1,1,0 else: 1,1,0,0 fi; |
| 23 |
draw_C R[i]; |
| 24 |
if proofing>0: |
| 25 |
for j:=0 upto length(R[i])-1: |
| 26 |
makelabel(decimal(j) & "/" & decimal(i),point j of R[i]); |
| 27 |
endfor |
| 28 |
fi |
| 29 |
endfor |
| 30 |
write_postamble; |
| 31 |
endchar; |
| 32 |
end. |
| 33 |
%%\end |
| 34 |
|