Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 644 Bytes

README.md

File metadata and controls

20 lines (11 loc) · 644 Bytes

palette

A color quantization script using k-means clustering. It finds the best n colors that make up an image and redraws them along with the palette that made it possible.

Using Lab colorspace throughout the calculations lead to big gains in accuracy.

papika

bird

palm2

It can render multiple iterations increasing the number of colors.

palm

girl

china

To use: python palette.py imagename startcolors endcolors