Debian Codegraph @

texmf-dist/doc/metapost/featpost/example/defaultcmr.mp

raw
1 % defaultcmr.mp
2 % use dvips -Pcmz
3
4 beginfig(0);
5 picture sent[];
6 numeric xCoord, i;
7 color one, two, thr, fur;
8 one = (0.13333,0.54510,0.13334);
9 two = (0.74118,0.71764,0.41961);
10 thr = (0.80000,0.20000,0.20000);
11 fur = (0.00000,0.85000,1.00000);
12 xCoord = 3in;
13
14 defaultfont := "cmbx12";
15 defaultscale := 6.5;
16
17 sent1 = thelabel( " ", (xCoord, 6in) );
18 sent2 = thelabel( "Be", (xCoord, 5in) );
19 sent3 = thelabel( "Aware", (xCoord, 4in) );
20 sent4 = thelabel( "of", (xCoord, 3in) );
21 sent5 = thelabel( "Technical", (xCoord, 2in) );
22 sent6 = thelabel( "Arrogance.", (xCoord, 1in) );
23 for i = 1 upto 4:
24 draw sent[i] withcolor two;
25 endfor;
26 for i = 5 upto 6:
27 draw sent[i] withcolor thr;
28 endfor;
29 endfig;
30
31 end;
32