10 ms·
> Four hexadecimal characters is twelve bits. Each hexadecimal digit is 4-bits, so a 4 digit hexadecimal number is 16-bits. The number of colors defines the c
by Maursault 4y ago
> Four hexadecimal characters is twelve bits.
Each hexadecimal digit is 4-bits, so a 4 digit hexadecimal number is 16-bits.
The number of colors defines the color depth. 16 colors is 4-bit color depth, so 12 colors is less than 4-bit and not 12-bit. I am satisfied that the author has misunderstood the meaning of color depth aka bit depth or invented a new meaning for it previously unknown to the world.
- icedchai 4y agoPretty sure you are wrong. They're actually using 3 hex digits (the first color is #817.) The 12 colors are selected from a 12-bit space (#000 through #fff.) Makes sense to me.
- chrisseaton 4y agoSorry, three digits I mean. > The number of colors defines the color depth. Yes, and they have selected these 12 colours out of a range of 4096 colours, so from a range with a colour-depth of 12-bits. If they picked from the millions of colours expressible in CSV it'd be 24-bit colour-depth. But they didn't - they picked from a subset of 12-bit depth. > so 12 colors is less than 4-bit and not 12-bit From a range of 12-bit colours, is what they mean. From a range. Get it? I think you're confused that there are 12 colours, and it's from a range of 12-bit colours. The two things are unrelated. > I am satisfied that the author has misunderstood the meaning of color depth Don't know what else to say really - sorry you don't understand. See the every other comment in this thread saying exactly the same thing as me if you aren't sure.