Color Codes

10,192 views
Skip to first unread message

KYGISMAN

unread,
Nov 28, 2005, 11:45:20 AM11/28/05
to KML Discussions
I am having problems using the hexadecimal color system in kml. Could someone give me a few pointers on editing your color schemes in the kml file. Any comments are appreciated. This applies to both linesyles and polyfills.

HookEmHorns

unread,
Nov 28, 2005, 12:38:53 PM11/28/05
to KML Discussions
Not sure if this helps at all but....


Red linestyle:

<LineStyle>
<color>ff0000ff</color>
</LineStyle>


Blue polystyle:

<PolyStyle>
<color>ffff0000</color>
</PolyStyle>

dyatsko

unread,
Nov 28, 2005, 3:13:58 PM11/28/05
to KML Discussions
The colors are in hexidecimal code (base 16, 00-ff)
They are in the format:
alpha, blue, green, red ( a reversal of normal red,green, blue)
where alpha is the tranparency setting 00 for clear, ff for solid

For example:
ff0000ff is solid red
330000ff is a transpanent (see thru) red

ff00ff00 is solid green
ffff0000 is solid blue
ff00ffff is solid yellow (mixing of red and green)
ffff00ff is solid purple (mixing of red & blue)

77008cff is semi-transparent orange

see rgb color link:
http://www.pitt.edu/~nisg/cis/web/cgi/rgb.html

Hope this helps
Reply all
Reply to author
Forward
0 new messages