+ 6
Hexadecimal values, is it Worth it?
how do you feel about expressing HTML colors in hexadecimal values...
6 RĂ©ponses
+ 5
would you rather remember all the color names? what if you'd like to have a light blueish color? you'd have to search for its name...
the other possibility would be rgb notation. in css you'd have to surround it by rgb(...)
hex saves space. especially if all three components would have the same digits each, like white would be #fff instead of #ffffff. you can even write #369 instead of #336699 for a dark blue color.
personally I only use rgb when it comes to transparency: rgba. for all other colors I prefer hex. and I'm freaking out constantly when I can't use it, like in word or excel for example.
+ 4
keeping all this figures in mind can be quite tricky... but hexadecimal values are not so bad..
+ 3
This question seems incomplete. Is Hexadecimal worth it? Well what are we comparing it to? Is this about notation, rendering speed, compatibility??? Does hex have a place in code, sure it does. It may not support transparency like rgba(). This in itself is not an issue as most colours on the web are opaque. If you need transparency, use rgba(). Mix and match.
+ 2
worth, because 256 can write in ff
+ 1
I think this webpage defined the hex system usage well,
The hexadecimal system is commonly used by programmers to describe locations in memory because it can represent every byte (i.e., eight bits) as two consecutive hexadecimal digits instead of the eight digits that would be required by binary (i.e., base 2) numbers and the three digits that would be required with decimal numbers. In addition, it is much easier for humans to read hexadecimal numbers than binary numbers, and it is not much more difficult for computer professionals to read hexadecimal numbers than decimal numbers.
resources: http://www.linfo.org/hexadecimal.html