HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleJuicyPixels-3.3.8Haskell2010

Codec.Picture.ColorQuant

This module provide some color quantisation algorithm in order to help in the creation of paletted images. The most important function is palettize which will make everything to create a nice color indexed image with its palette.

  • 2 types
  • 3 values
  • PackageJuicyPixels-3.3.8
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceColorQuant.hs

Define which palette creation method is used.

Constructors

  • MedianMeanCut

    MedianMeanCut method, provide the best results (visualy) at the cost of increased calculations.

  • Uniform

    Very fast algorithm (one pass), doesn't provide good looking results.