Skip to content
color-kitnext
StartAPI
color-kit on GitHub
Start

Concepts

  • OKLCH-canonical
  • Requested vs displayed
  • Planes and queries
  • Gamut and tolerance
  • Contrast

Guides

  • Headless picker
  • React
  • Contrast-aware palettes
  • GPU and three.js
  • Performance

API

  • Overview
  • @pbroom/color-kit
      • KconstGAMUT_EPSILON
      • KconstGAMUT_LINEAR_MAX
      • KconstGAMUT_LINEAR_MIN
      • ffunctioninSrgbGamut
      • ffunctionisLinearRgbInGamut
      • ffunctioninP3Gamut
      • ffunctiontoSrgbGamut
      • ffunctiontoSrgbGamutInto
      • ffunctiontoP3Gamut
      • ffunctiontoP3GamutInto
      • ffunctionmaxChromaForHue
      • ffunctionmaxChromaAt
      • ffunctiongamutBoundaryPath
      • ffunctionchromaBand
      • TtypeGamutTarget
      • TtypeGamutMapMethod
      • IinterfaceGamutMapOptions
      • IinterfaceGamutBoundaryPoint
      • IinterfaceHueCusp
      • TtypeMaxChromaForHueMethod
      • IinterfaceMaxChromaForHueOptions
      • IinterfaceMaxChromaAtOptions
      • IinterfaceGamutBoundaryPathOptions
      • TtypeChromaBandMode
      • IinterfaceChromaBandOptions
  • @pbroom/color-kit/plane
  • @pbroom/color-kit/interop
  • @pbroom/color-kit/compute
  • @pbroom/color-kit/hct
  • @pbroom/color-kit/driver
  • @pbroom/color-kit/react
Map

@pbroom/color-kit/Gamut

GamutMapOptions

Options for toSrgbGamut, toP3Gamut and their Into forms.

interfaceimport type { GamutMapOptions } from '@pbroom/color-kit';types.ts:23
interface GamutMapOptions {
  method?: GamutMapMethod;
}

Properties

method?GamutMapMethoddefault 'chroma-reduction'
Gamut mapping algorithm; see GamutMapMethod.

Your display: detecting

MIT licensedSource