Method BuildPalette
BuildPalette(List<Color>, int)
Reduce the number of colors to maxColors (or less)
using an appropriate selection algorithm.
List<Color> BuildPalette(List<Color> colors, int maxColors)
Parameters
colorsList<Color>Color of every pixel in the image. Contains duplication in order to support algorithms that weigh how common a color is.
maxColorsintThe maximum number of colours that should be represented.