99designs / colorific

Automatic color palette detection
ISC License
700 stars 55 forks source link

visualization idea: colors in rectangles #11

Open jabbalaci opened 11 years ago

jabbalaci commented 11 years ago

Hi,

It would be nice to produce an image with the colors on it, as seen on http://99designs.com/tech-blog/blog/2012/05/11/color-analysis/ . Example: http://i.imgur.com/zC7F1.png .

There could be an option for this.

Best,

Laszlo

dhotson commented 11 years ago

There is a -o option to output an image showing the palette:

colorific -o myimage.png

.. this will create a file called myimage_palette.png

Is that what you mean? Or do you also want to show the hexcodes in the palette image?

jabbalaci commented 11 years ago

Thanks, I didn't know about this option. Yes, I meant exactly this. The hexcodes are also shown. However, one little thing: the hexcodes are written in white, even on light rectangles, making it very hard (or impossible) to read. Maybe the hexcodes could have a black background?

Please add an example with the "-o" option to the README.