Thanks again William - I can't believe you went through the whole
thing! I've only been looking at my 'park-ugly' colour-experimentation
page through the iPhone until now, so I hope you don't mind my
'borrowing' your code so that I could look at the page the way it is
'supposed' to. Would you mind if I keep your notes for reference?
I'm sure google wants people to make plans that can be visually
associable with their base product - and their method is a good means
to that end. Especially their RGB to HSL calculations... grrr.
I found a few things in my twiddlings, but nothing conclusive. Hint:
if you set the saturation to 100 and gamma to -48 for certain elements
(parks and water, namely) you will have settings that will let you
play with saturated 'pure' colours.
Before even getting to the colours, I wanted to see what 'switched'
what in their conversion, to better control what their server sent
back to me. First off, I found that strings (for the 'hue' option of
course) without a leading '0x' longer than 16 characters 'broke' the
style engine, forcing the server to render 'standard' images.
Secondly, there seems to be some sort of 'byte count' operation going
on... if I have my 'roads' option set to apply changes to 'all', the
colour changes are minimal at best, and the labels (especially the
highly-differing highway ones) remained as equally contrasted when
trying to pass just hues. I found that:
First off, there is no color variation between, say, '0x360' and
'0x00000000000360' (the leading zeros are just trunciated)
Yet there is a big difference between '0x36000000' and '0x360000000' -
the colours (constantly changing as you add zeros) suddenly begin
affecting the road labels as well (beyond a certain byte count, the
selected hue overrides the standard colour scheme entirely and only
the saturation/lightness settings are applied).
As for the colours, using the technique mentioned above, I found some
oddities that may lead somewhere. I noticed a few patterns emerge
while attempting to apply a 'gamma addition' to the front end of a hue
hex literal (as suggested in an earlier post):
The hexadecimal format will render parks pure red (remember to
disactivate the base 'poi' settings) if the hue hex code is
0xf0f03600, 0xfff00000, 0xf0ff0000; 0xf0003600, 0xf0f00000, 0xff000000
will render pure green; 0xf0ff360, 0xffff0000 and 0xf0000000 will
render pure blue. Not sure where that's pointing, but it's pointing
somewhere.