[OSM-talk] # with color code

James james2432 at gmail.com
Thu Sep 28 16:59:15 UTC 2017


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 represented by ff in hex.

On Sep 28, 2017 12:08 PM, "Jack Armstrong Dancer at sprynet.com" <
jacknstacy at sprynet.com> wrote:

> 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 at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20170928/7fa2f7ea/attachment.html>


More information about the talk mailing list