On Wed, Aug 25, 2010 at 6:59 PM, Sefu <[email protected]> wrote:

> ... yet '225' renders magenta, '#225' renders blue, and '0x225'
> renders purple


Obviously these are undocumented properties and cannot be relied upon in a
production system, but I believe that:
1. '225' and '0x225' are relative hues, specified in decimal degrees,
applied as an adjustment to the existing color in ROADMAP, and
2. '#225' is an absolute rgb hue, which replaces the existing color in
ROADMAP

RELATIVE HUES

225 is decimal already, and
0x225 hex = 549 decimal, which is 360 + 189

so on an example with roads where the shaded color is yellow, 60 degrees,
then the expected hues are calculated by adding the shift to 60:

(a) 225 + 60 = 285
(b) 189 + 60 = 249

when I tried it (with saturation 100) and then selected the resulting colors
with photoshop it said 284 and 248 respectively, very close to the predicted
hue.

ABSOLUTE HUES

I think '#225' is interpreted with leading zeros to pad to 6 hex digits =
'#000225'
photoshop says this is a hue of 237 degrees.  This is confirmed when trying
hue: '#225' on roads (with saturation: 100)

...

-- 
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