The value is defined as an hexadecimal rgb code, starting with a #.
I think most data consumers try to decode it with or without a #, its an easy
to fix typo.
Yves
Le 28 septembre 2017 18:59:15 GMT+02:00, James a écrit :
>usually # specifies that it's a hexidecimal number
usually # specifies that it's a hexidecimal number vs a base 10 number.
When you have letters A-F it's obvious that it's hexidecimal and can be
implecitely converted.
The issue is when you don't have letters:
255
in hexadecimal 255 is
2*16^2
+
5*16^1
+
5*16^0
= 512+80+5=597
255 base 10 would be
It's been my experience that colors render just fine without a '#' before the code number. Is usage of a # prefix really necessary? What problems will occur if it isn't attached? Thanks :)
___
talk mailing list
talk@openstreetmap.org
3 matches
Mail list logo