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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

56 CHAPTER 7. ADVANCED FEATURESTable 7.1: Justify options for the join command.Top rightTop centreTop leftBottom leftBottom centreBottom rightRight centreLeft centreCentre.tr.tc.tl.bl.bc.br.rc.lc.cc.v Vertical line.h Horizontal line.c Circle/ellipse clipping (for drawing lines to, e.g., a circle).box Box clippingThe functions “pointx” (abbreviated to “ptx”, see p. 49), “pointy” (abbreviated to “pty”), “width”, and“height” (p. 49) apply to named points and objects. They retrieve the “x” respectively “y” coordinateof a named point, and the width and height of a named object. For example:print ptx(square.tr)print pty(square.tr)print width(square)print height(square)Complete ExampleBelow is a complete example that makes use of the constructs described above. The resulting figure isshown in Fig. 7.1.begin name lineamove 8 18rline 0 -6end namebegin name mainamove 9.5 6.5ellipse 2 0.8write "Main"end nameamove 3 16begin box name grv add 0.3 round 0.3 fill lightcyanwrite "GRV"end boxamove 12.5 16.5begin box name cheese add 0.3 fill lightcyanwrite "Cheese"end boxamove 15.5 11.5begin box name chv add 0.3 fill lightcyanwrite "CHV"end boxamove 3 10begin box name goats add 0.3 fill lightcyanwrite "Goats"

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

Saved successfully!

Ooh no, something went wrong!