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.

7.4. COLOUR 61size 10 5begin clip ! Save current clipping pathbegin path clip stroke ! Define new clipping regionamove 2 2box 3 3amove 6 2box 3 3end pathamove 2 2set hei 3text Here is clipped textend clip ! Restore original clipping pathHere is7.4 ColourInternally <strong>GLE</strong> treats color and fill identically, they are simply an intensity of red, green and blue. Eachof the predefined color names (yellow, grey20, orange, red) simply define the ratio of red, green and blue.A sample of the predefined color names is included in Appendix A.7.There are two ways to use variables to show color, one is for shades of grey:for i = 0 to 10box 3 .2 fill (i/10)rmove 0 .2next iThe other is for passing a color name as a variable:sub stick c$box .2 2 fill c$end substick "green"A color can also be defined based on its RGB values with the rgb255 primitive.mycolor$ = "rgb255(38,38,134)"Remember a fill pattern completely obscures what is behind it, so the following command would producea box with a shadow:amove 4 4box 3 2 fill grey10rmove -.1 .1box 3 2 fill whitermove .4 .4text hellow

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

Saved successfully!

Ooh no, something went wrong!