Hacker News new | ask | show | jobs
by Aardwolf 4875 days ago
The 4th byte is thrown away... You could use it as alpha channel? Or CMYK color.
1 comments

Considered it, but CMYK only go up to 100 in value - alpha channel could be an option though...
You can name the color too - http://chir.ag/projects/ntc/

It's not an exact match of course but I did my best to make it as close as possible.

This is really cool, and useful.

[and for all the silly color names out there, it's actually pretty amazing how right most of the names that pop out of this tool seem... most really do capture the essence of the color.]

Since it's out of 100, you could do CMYK based on proportion. e.g.:

C = (byte1/255)x100; M = (byte2/255)x100; Y = (byte3/255)x100; K = (byte4/255)x100;

FWIW, due to the way that the IPv4 address space is allocated, you could achieve far fewer "collisions" (i.e. different IPs producing the same palette) by throwing away the first byte instead.

http://www.iana.org/assignments/ipv4-address-space/ipv4-addr...