by Maursault · 4y ago · 0 comments
ln(12)
------
ln(2)
Color depth (or bit depth) is the number of bits used to indicate the color of a single pixel. So 24-bit color depth produces 16,777,216 colors, 12-bit color depth produces 4096 colors, 8-bit color depth produces 256 colors, and 4-bit color depth produces 16 colors. A 12 color palette is 3.58496250…-bit color depth.>> The palette uses a 12-bit colour depth
It is the author that has misunderstood.[1]
> The palette uses a 12-bit colour depth, so each colour requires only four characters when specified as a hexadecimal colour code in a css or svg file:
Four hexadecimal characters is twelve bits. The colours they’ve chosen can be represented precisely in a 12-bit colour space. Get what they mean?
It’s further confirmed again in the article:
> Using a 12-bit colour depth limits the available colours, so slight changes to hue, chroma, and luminance must be made, but these are small enough not to be noticeable.
How could it ‘limit the available colours’ unless this was their meaning?
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.