Hacker Newsnew | past | comments | ask | show | jobs | submit | imhobson's commentslogin

Was it obviously green?


Clearly.


Here's a short blog post to go with this little project we made! http://meetstrange.com/blog/pretty-ip/


I like how you blur out the IP address but it could be trivially recovered by sampling the colors :)


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...


Heh, thanks for the correction - will make that change now!


Thanks! Looking into this meow


Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: