I have array of square regions which covered with 5 colors CMYK +white. There is no overlap of colors. When you looking at those squares from distance - each square become 1 pixel. I need to convert each square to closest RGB equivalent and create an image. I can get percentage of each color, in JSON file. Can use javascript on client side or on server side.
Example of input:
[
{c:20,m:10,y:15,k:20,w:35}, // Percent of area covered by color
{c:50,m:0,y:0,k:0,w:50},
...
]
Expected output:
[
{r:?,g:?,b:?},
{r:?,g:?,b:?},
...
]