12.07.2015 Views

GLE User Manual - Fedora Project Packages GIT repositories

GLE User Manual - Fedora Project Packages GIT repositories

GLE User Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.2. GRAPHICS PRIMITIVES (IN DETAIL) 17This command must appear before the first size command in the <strong>GLE</strong> file.rbezier x1 y1 x2 y2 x3 y3This command is identical to the BEZIER command except that the points are all relative to thecurrent point.amove 0.5 2.8rbezier 1 1 2 -1 3 1amove 0.2 0.2rbezier 1 1 2 1.2 1.8 0return expThe return command is used inside subroutines to return a value.reverseReverses the direction of the current path. This is used when filling multiple paths in order thatthe Non-Zero Winding Rule will know which part of the path is ‘inside’.With the Non-Zero Winding Rule an imaginary line is drawn through the object. Every time aline of the object crosses it from left to right, one is added to the counter; every time a line of theobject crosses it from right to left, one is subtracted from the counter. Everywhere the counter isnon-zero is considered to be the ‘inside’ of the drawing and is filled.0 1 0 1 0 0 1 2 1 0rline x y [arrow end] [arrow start] [arrow both] [curve α1 α2 d1 d2]Draws a line from the current point to the relative coordinates (x,y), which then become the newcurrent point. If the current point is (5,5) then rline 3 -2 is equivalent to aline 8 3. The optionalqualifiers on the end of the command will draw arrows at one or both ends of the line, the size ofthe arrow head is proportional to the current font size.The curve option is explained with the aline command.rmove x yChanges the current point to the relative coordinate (x,y). If the current point is (5,5) then rmove3 -2 is equivalent to amove 8 3.save objectnameThis command saves a point for later use with the join command.set alabeldist dThe spacing between the graph axis labels and the axis is set to d.set alabelscale sThe graph axis label font size is set to ‘alabelscale’ times ‘hei’.set arrowangle angleSets the opening angle of the arrow tips. (Actually, half of the opening angle.)set arrowsize sizeSets the length of the arrow tips in centimeter.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!