Hacker News new | ask | show | jobs
by kenbellows 4874 days ago
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;