texmf-dist/doc/metapost/featpost/example/parabolaonthestage.mp
raw| 1 | % parabolaonthestage.mp |
| 2 | % L. Nobre G. |
| 3 | % 2014 |
| 4 | |
| 5 | input featpost3Dplus2D; |
| 6 | Spread := 30; |
| 7 | f := (5,3,2); |
| 8 | beginfig(1); |
| 9 | numeric i, li; |
| 10 | li = 50; |
| 11 | setthestage( 18, 10 ); |
| 12 | draw for i=-li step 0.25 until li-0.25: |
| 13 | rp((5-(i**2),i,0))... |
| 14 | endfor rp((5-(li**2),li,0)) withcolor blue withpen pencircle scaled 3pt; |
| 15 | endfig; |
| 16 | |
| 17 | end. |