Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A JavaScript implementation of the median-cut algorithm.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src remove unused vars
LICENSE better readme name
karma.conf.js add beginnings of a test suite; refactor a few things


median-cut.js is a JavaScript implementation of the Median Cut algorithm for color quantization. Median cut is typically used to reduce the number of colors in an image. It can be used more generally to find clusters in any 3-dimensional data set.

Median cut is also useful for finding a color palette that "represents" an image.

median-cut.js was created for use in ColorPal.


Coming soon.

Something went wrong with that request. Please try again.