On Aug 27, 12:08 am, Sefu <[email protected]> wrote:
>
> Now all I have to do is convert a 6-character RGB hexidecimal color
> code to an 8-character hexidecimal string.
>
I tried something which takes a hue (0 ... 360) and converts it to a 8-
character hex string, using this series of numbers:

0xF0000000 = hue 240
0xF0000100 = hue 136 = (240+256) mod 360
0xF0000200 = hue  32 = (136+256) mod 360
etc

This series generates every 8th hue, which produces a range of 45 hues
(0,8,16,24 ...,352,360)

On the Paris map it nearly works, except for the water where the hue
chosen is "off by one", so I had to adjust that hue:

http://www.william-map.com/20100827/1/paris.htm

...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to