This is an old revision of the document!


Back

Color and RGB attributes

The preferred method of defining the color to use for drawing is the color attribute.

The color codes used shall be defined in the mapcolors.xml file in the root folder of the FIR definition.

  <line color="airspace_low">
      <point lon="E0042957" lat="N0511059"/>
      <point lon="E0044324" lat="N0510755"/>
  </line>

If for one reason or the other you want to define a fixed color the rgb attributes are available.

  <line r="65" g="112" b="40">
      <point lon="E0042957" lat="N0511059"/>
      <point lon="E0044324" lat="N0510755"/>
  </line>

We strongly suggest to use the color attribute to keep everything as user friendly as possible.

The color attribute has priority over the the rgb attributes.