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:55] splendor.bouman |
ivac2:firdef_map_color_rgb [2017/04/08 14:27] (current) |
||
---|---|---|---|
Line 12: | Line 12: | ||
</lines> | </lines> | ||
</code> | </code> | ||
- | |||
- | |||
- | |||
- | 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 stroke_color="#FF9922"> | ||
- | <point lon="E0042957" lat="N0511059"/> | ||
- | <point lon="E0044324" lat="N0510755"/> | ||
- | </lines> | ||
- | </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"/> | ||
- | </lines> | ||
- | </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. | ||
---- | ---- |