Click to See Complete Forum and Search --> : Colour identification code


The_Magus
11-18-2006, 10:15 AM
I have a couple of photo programs and have used them for cropping, adding text and cloning in the past.

In all cases the colours had a name/number something like #c6c6FF (six numbers/letters).

I have just encountered a style sheet which uses on the # and three numbers/letters such as #000, #060, #fff.

Any suggestions as to where I can find out more about such an identification system and determine the code for additional colours?

Thank you

Jack

_Aerospace_Eng_
11-18-2006, 11:28 AM
This happens when the 6 digit hex values have pairs in common. So for example
#000 = #000000
#060 = #006600
#FFF = #FFFFFF
#F00 = #FF0000
#00F = #0000FF
#FF0 = #FFFF00
#CCC = #CCCCCC
#EEE = #EEEEEE

I think you get the point.

Its just the shorthand version and it doesn't work for all hex values, again it only works for hex values with pairs.

The_Magus
11-18-2006, 12:16 PM
Thanks, I think I get the point but will try it out to prove it. Have discovered that I often think I have understood only to discover that I haven't understood but guess that is just a fact of life.

Cheers and thanks for the quick response.

Jack