Difference between revisions of "Colors"

From wiki.fine.cz
Jump to navigation Jump to search
(Created page with "Colors in XML file are either special identifier (<code>clNone</code>, <code>clDefault</code>, <code>clRed</code>, ..) or hexadecimal definition. {| class="wikitable" |+Special color identifiers !XML Identifier !Color |- |<sup>[V]</sup> <code>clNone</code> |without color |- |<sup>[V]</sup> <code>clDefault</code> |color defined from outside |- |<sup>[V]</sup> <code>clBlack</code> |<code>$0000...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Colors in XML file are either special identifier (<code>clNone</code>, <code>clDefault</code>, <code>clRed</code>, ..) or hexadecimal definition.
Colors in XML file are either special identifier (<code>clNone</code>, <code>clDefault</code>, ...) or hexadecimal definition.
 
====Hexadecimal definition====
Colors are defined in the form $00BBGGRR, where <code>RR</code> (red), <code>GG</code> (green) and <code>BB</code> (blue) are components in hexa notation, <code>00</code> are zeros which can be omitted (or used for special purposes).
{| class="wikitable"
{| class="wikitable"
|+Special color identifiers
|+Special color identifiers
Line 9: Line 12:
|-
|-
|<sup>[[Legend of XML elements|[V]]]</sup> <code>clDefault</code>
|<sup>[[Legend of XML elements|[V]]]</sup> <code>clDefault</code>
|color defined from outside
|color defined by another method
|-
|-
|<sup>[[Legend of XML elements|[V]]]</sup> <code>clBlack</code>
|<sup>[[Legend of XML elements|[V]]]</sup> <code>clLine</code>
|<code>$000000</code>
|line color defined by drawing
|-
|<sup>[[Legend of XML elements|[V]]]</sup> <code>clFill</code>
|fill color defined by drawing
|-
|<sup>[[Legend of XML elements|[V]]]</sup> <code>clHatch</code>
|hatch color defined by drawing
|}
|}

Latest revision as of 12:54, 22 March 2022

Colors in XML file are either special identifier (clNone, clDefault, ...) or hexadecimal definition.

Hexadecimal definition

Colors are defined in the form $00BBGGRR, where RR (red), GG (green) and BB (blue) are components in hexa notation, 00 are zeros which can be omitted (or used for special purposes).

Special color identifiers
XML Identifier Color
[V] clNone without color
[V] clDefault color defined by another method
[V] clLine line color defined by drawing
[V] clFill fill color defined by drawing
[V] clHatch hatch color defined by drawing