Table of Contents

Method BuildPalette

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

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

colors List<Color>

Color of every pixel in the image. Contains duplication in order to support algorithms that weigh how common a color is.

maxColors int

The maximum number of colours that should be represented.

Returns

List<Color>