texmf-dist/doc/metapost/featpost/example/ultraeye.mp
raw| 1 | % ultraeye.mp |
| 2 | % L. Nobre G. |
| 3 | % 2007 |
| 4 | |
| 5 | prologues := 1; |
| 6 | beginfig(1); |
| 7 | LaTeX_unitlength := 14.22636pt; % from the emp LaTeX package |
| 8 | w := 15*LaTeX_unitlength; |
| 9 | h := 10*LaTeX_unitlength; |
| 10 | for i=h step -h/20 until h/20: |
| 11 | fill fullcircle scaled i xscaled (w/h) withcolor blue; |
| 12 | fill fullcircle scaled i withcolor red; |
| 13 | endfor; |
| 14 | endfig; |
| 15 | end. |
| 16 | endinput; |