...so basically, the 'Fxxxxxxx' has to be a multiple of anything between 0(1?) and 360... and that multiplying number has to be something large enough to create an 8-digit hex number (if it was a constant, things would be easy - but I think not). '0' == 'no change' (default map hue). Yet when I take a '360-divisible' number and transform it to hex (4293918720 - 360 == 4293918360 == 0xffeffe98) it won't work - the example I gave actually breaks the API engine (no hue) - btw, '4293918360' entered as a decimal value won't work either. '0xF000F0F0' should work if all that was important that the hex number be a '360-multiple', but it doesn't. So wee can conclude that the first character must be an 'F', and it seems that those last two characters have to be '00'.
... but it still isn't that easy! '0xF00FF011' ~still~ results in pure red (through to 0xF00FF077 and 0xF00FF07F), but if the seventh character is '8' and above, a 'color shift and add' is provoked... (resulting color: #4400FF). Still twiddling... On Aug 27, 8:49 am, William <[email protected]> wrote: > 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.
