-
53
pages
-
English
-
Documents
Description
MetaPost: A Very Brief Tutorialosurs@bluewin.ch Urs Oswald http://www.ursoswald.chOctober 3, 2002Contents1 A2B 22 LineSegments 33 Circles 44 CircleParametrization 55 BezierCurves 76 GraphSqrt 87 Paths 98 StringLabels 119 TeXLabels 1310 LaTeXLabels 1511 Equations 1712 Mediation 1913 Precedence 2114 Directions 2315 Times 2516 Colors 2717 Slanted 2818 Scaled 3019 xScaled 3320 zScaled 3521 Transform 3822 Functions 4123 ForSuffixes 4324 Recursiveness 4725 RecursivePath 4826 ifthenInLabel 5027 NewOperators 5211 A2Bbeginfig(1)draw (100, 100)--(350, 275);endfig;end22 LineSegmentsu:=25; % 25 = 25bp = 25 PostScript points = 25/72 inwi:=10; % width in units uhe:=7; % height in uhoehe:=he*u; %breite:=wi*u; % widthbeginfig(1)% --- Grid ---for i=0 upto he:draw (0, i*u)--(breite, i*u) withcolor .7white;endforfor j=0 upto wi:draw (j*u, 0)--(j*u, hoehe) withcolor .7white;endfor% --- End Grid ---draw (0, 0)--(breite, 0)--(breite, hoehe)--(0, hoehe)--cycle;% --- Line Segment ---draw (.7u, 4u)--(5u, 6.5u);% --- Arrow ---drawarrow (6.4u, 6u)--(9.5u, 4.8u);pickup pencircle scaled 2; % default:% 0.5 (= 0.5bp = 0.5 PostScript Points)% --- Polyline ---draw (u, 5u)--(0, 4u)--(u, 3u)--(2u, 4u)--(3u, 3u)--(u,u)--(2u, 0)--(3u, u);% --- Polyarrow ---drawarrow (5u, 5u)--(4u, 3u)--(5u, 4u)--(4u, 2u)--(6u, 3u)--(5u, u);% --- Polygon ---fill (7.7u, .3u)--(9.6u, 1.5u)--(9.3u, 3.6u)--(7.2u, 3.8u)--(6.4u, 2.5u)--(7.3u, 1.9u)--cycle withcolor ...
-
Publié par
-
Langue
English