powered by
Converts some common color formats (internal R colors, hexadecimal format, Munsell color codes) color to KML format.
col2kml(colour)
R color string
KML-formatted color as \#aabbggrr where aa=alpha (00 to ff), bb=blue (00 to ff), gg=green (00 to ff), rr=red (00 to ff).
\#aabbggrr
aa
bb
gg
rr
aqp::munsell2rgb
# NOT RUN { col2kml("white") col2kml(colors()[2]) hex2kml(rgb(1,1,1)) x <- munsell2kml("10YR", "2", "4") kml2hex(x) # }
Run the code above in your browser using DataLab