10.1. Color
The color
element defines a color in RGB or RGBA format:
color ::= (color { #rrggbb | #rrggbbaa } )
The color is written as a hash character, “#”, followed by some number of hexadecimal characters (digits 0-9 and letters a-f, the case of the letters doesn’t matter: #00ff00 is identical to #00FF00). In the RGB format, the first two hex digits are for the red channel (rr), the next two for the green channel (gg) and the last two for the blue channel (bb). In RGBA format, two additional hex digits (aa) for the alpha channel (opacity) must be provided, where a value of ‘00’ is full transparent and a value of ‘ff’ is full opaque.
Examples:
(color #ff0000) //red (opaque)
(color #ffff0000) //transparent yellow
(color #4bc11fc0) //bright green, 25% transparent
10.2. Width and height
Some elements requires a width
element, a height
element or both:
width ::= (width number) height ::= (height number)
The units depend on were the width
and height
elements are used. Normally values are expresed in tenths but in certain elements, width and height are expresed in absolute units (cents of a millimeter). See details in each element using the width
and height
elements.
Examples:
(width 77.0)
(height 50)
10.3. Hide /show objects
visible ::= (visible {yes | no}) | noVisible
10.4. Style
style ::= (style name)
The name parameter must be the name of an style defined with defineStyle
element, or must be the name of a default styles (see Defining styles for a list of default styles).