Live data from Hacker News

The Code Side Of Color

coding.smashingmagazine.com

1–10 of 40 posts

Re: The Code Side Of Color

#2
Bleh, it seems they forgot to proof this or have it read by someone who ... I don't know, maybe knows a bit more about how it really works.

When computers name a color, they use a so-called hexidecimal code that most humans gloss over: 24-bit colors. That is, 16,777,216 unique combinations of exactly seven characters made from ten numerals and six letters — preceded by a hash mark.

I mean, "hexidecimal" is hopefully just a typo, but the "explanation" in the second sentence is off by one, it's not seven characters that make up the color, since the hash mark is constant and doesn't contribute. I would object to the "ten numerals and six letters" too, but I guess that's a suitable popular nomenclature.

And I don't even have a lawn ...

Re: The Code Side Of Color

#3
It’s a good explanation of how hex colour codes work, but in this day and age it's so much simpler to use (and think in) rgb(n, n, n) notation. Not to mention the hsl(n, n%, n%) notation that is supported by modern browsers.

Re: The Code Side Of Color

#4
post #2

Bleh, it seems they forgot to proof this or have it read by someone who ... I don't know, maybe knows a bit more about how it really works. When computers name a color, they use a so-called hexidecimal code that most humans gloss over: 24-bit colors. That is, 16,777,216 unique combinations of exactly seven characters made from ten numerals and six letters — preceded by a hash mark. I mean, "hexidecimal" is hopefully…

I also have a real problem with them referring to the second digit from the right as the "tens place", considering it's actually base sixteen...

Re: The Code Side Of Color

#5
post #2

Bleh, it seems they forgot to proof this or have it read by someone who ... I don't know, maybe knows a bit more about how it really works. When computers name a color, they use a so-called hexidecimal code that most humans gloss over: 24-bit colors. That is, 16,777,216 unique combinations of exactly seven characters made from ten numerals and six letters — preceded by a hash mark. I mean, "hexidecimal" is hopefully…

Not to mention that they equate A-F as 10-16, when in fact it is 10-15, and the whole "ones column" goes from 0-15, not 1-16.

Re: The Code Side Of Color

#7
post #3

It’s a good explanation of how hex colour codes work, but in this day and age it's so much simpler to use (and think in) rgb(n, n, n) notation. Not to mention the hsl(n, n%, n%) notation that is supported by modern browsers.

I exclusively use HSL notation because if you're using less functions like spin(), [de]saturate() and [lighten|darken]() it's what makes the most sense.

Re: The Code Side Of Color

#8
post #7
post #3

It’s a good explanation of how hex colour codes work, but in this day and age it's so much simpler to use (and think in) rgb(n, n, n) notation. Not to mention the hsl(n, n%, n%) notation that is supported by modern browsers.

I exclusively use HSL notation because if you're using less functions like spin(), [de]saturate() and [lighten|darken]() it's what makes the most sense.

I've started using HSL too. Paul Irish is right, once you start using it, it's really easy to grasp and use on the fly.

See:

http://mothereffinghsl.com/

Re: The Code Side Of Color

#9
I'm all for designers learning a bit of the technical background behind colors on the web, but this article is full of technical inaccuracies, misconceptions, and misleading comparisons.

"Tens place"? "24-bit color" ignores alpha and color palettes "# means 'This is a hex number'": No, it means a web color expressed as 3 hex numbers.

Plus, I know it looks better to make your colors less saturated, but when you are demonstrating starting from #ff0000 and adding other colors, why not actually display #ff0000 instead of #e93f32?

Finally, spellcheck.

Re: The Code Side Of Color

#10
post #4
post #2

Bleh, it seems they forgot to proof this or have it read by someone who ... I don't know, maybe knows a bit more about how it really works. When computers name a color, they use a so-called hexidecimal code that most humans gloss over: 24-bit colors. That is, 16,777,216 unique combinations of exactly seven characters made from ten numerals and six letters — preceded by a hash mark. I mean, "hexidecimal" is hopefully…

I also have a real problem with them referring to the second digit from the right as the "tens place", considering it's actually base sixteen...

They clearly have a different understanding of base 16 to us!
Post reply on HN