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) 19set color blackset color whiteset color gray50set color 0.3set color redset color #ADFF2Fset color rgb255(255,140,0)set color rgb(0.5,0.2,0.2)Figure 3.5: Examples of setting the drawing color.GRID GRID1 GRID2 GRID3 GRID4 GRID5SHADE SHADE1 SHADE2 SHADE3 SHADE4 SHADE5RSHADE RSHADE1 RSHADE2 RSHADE3 RSHADE4 RSHADE5Figure 3.6: Patterns for painting shapes.set dashlen dashlen-expSets the length of the smallest dash used for the line styles. This command MUST come before theset lstyle command. This may be needed when scaling a drawing by a large factor.set fill fill color/patternSets the color or pattern for filling shapes. This command works in combination with shapes suchas circles, ellipses, and boxes. If the argument is a color, then shapes are filled with the given color(see “set color). If it is a pattern, then the shapes are painted with the given pattern in black ink.Fig. 3.6 lists a number of pre-defined patterns. To paint a shape in a color different from black,first set the color, then the pattern. That is,set background yellowset fill redset pattern shadebox 2 2will draw a box and paint is using the shade pattern and red ink on a yellow background. To drawshapes that are not filled, use the command “set fill clear”. That is,set fill clearbox 2 2will draw an empty box.set font font-nameSets the current font to font-name. Valid font-names are listed in Appendix A.2.There are three types of font: PostScript, L A TEX and Plotter. They will all work on any device,however L A TEX fonts are drawn in outline on a plotter, and so may not look very nice. PostScriptfonts will be emulated by L A TEX fonts on non-PostScript printers.set fontlwidth line-widthThis sets the width of lines to be used to draw the stroked (Plotter fonts) on a PostScript printer.This has a great effect on their appearance.

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

Saved successfully!

Ooh no, something went wrong!