This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ivac2:firdef_map_color_rgb [2015/06/07 21:37] splendor.bouman [Color and RGB attributes] |
ivac2:firdef_map_color_rgb [2017/04/08 14:27] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[ivac2:firdef_toc|Back]] | ||
====== Color and RGB attributes ====== | ====== Color and RGB attributes ====== | ||
Line 8: | Line 7: | ||
<code XML> | <code XML> | ||
- | <lines color="airspace_low"> | + | <lines stroke_color="airspace_low"> |
<point lon="E0042957" lat="N0511059"/> | <point lon="E0042957" lat="N0511059"/> | ||
<point lon="E0044324" lat="N0510755"/> | <point lon="E0044324" lat="N0510755"/> | ||
- | </line> | + | </lines> |
</code> | </code> | ||
+ | ---- | ||
+ | [[ivac2:firdef|Back]] | ||
- | There are two alternative ways to define the color used: | ||
- | - Using webcolors in hexadecimal #RRGGBB format | ||
- | - Using R,G,B values | ||
- | |||
- | |||
- | When the string value of the color attribute starts with a # then it shall be defined as #RRGGBB | ||
- | |||
- | <code XML> | ||
- | <lines color="#FF9922"> | ||
- | <point lon="E0042957" lat="N0511059"/> | ||
- | <point lon="E0044324" lat="N0510755"/> | ||
- | </line> | ||
- | </code> | ||
- | |||
- | Otherwise you can use R,G,B values like: | ||
- | |||
- | <code XML> | ||
- | <lines r="65" g="112" b="40"> | ||
- | <point lon="E0042957" lat="N0511059"/> | ||
- | <point lon="E0044324" lat="N0510755"/> | ||
- | </line> | ||
- | </code> | ||
- | |||
- | |||
- | |||
- | <HTML> | ||
- | <p style="border:1px dashed #C11B17;color:#C11B17;"> | ||
- | We strongly suggest to use the color attribute to keep everything as user friendly as possible. | ||
- | </p> | ||
- | </HTML> | ||
- | |||
- | |||
- | The color attribute has priority over the the rgb attributes. |