Convert an image's colors to a limited palette

edited September 2015 in How To...

I would like to sample an images pixels in rgb, then convert those rgb values to the closest in my limited palette.

I have no idea how that would be done. Any suggestions anyone?

Thanks!

Tagged:

Answers

  • Iterate over all the pixels and compare their 3d distance from your colours. Chose the closest.

Sign In or Register to comment.