Wednesday, 15 July 2015

Why are colors represented by hexadecimal values in CSS? Is there an historical explanation? -



Why are colors represented by hexadecimal values in CSS? Is there an historical explanation? -

in programming languages, colors represented hexadecimal values. example, using css, alter text color of header maroon-ish, type:

h1 { color: #8b1c62; }

i'm wondering reason using base-16 numeral scheme represent colors. hypothetically utilize numeral scheme represent same values, no?

when did convention start? know can read history of phenomenon?

the primary utilize of hexadecimal notation human-friendly representation of binary-coded values in computing , digital electronics.

each hexadecimal digit represent 4 bits. half byte. byte value can in range of 0 255 in decimal more easier read 2 hexadecimal digit 00 ff.

a 6 digit color code hold 256x256x256 combination of red, greenish , bluish ! (8-bit rgb)

read more color, color spaces , hexadecimal :

http://www.smashingmagazine.com/2012/10/04/the-code-side-of-color/

http://en.wikipedia.org/wiki/hexadecimal

http://en.wikipedia.org/wiki/rgb_color_model

css colors history convention

No comments:

Post a Comment