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
  • @pbroom/color-kit/plane
  • @pbroom/color-kit/interop
  • @pbroom/color-kit/compute
  • @pbroom/color-kit/hct
      • ffunctionmaxHctChromaForHue
      • ffunctionmaxHctPeakToneForHue
      • ffunctionmaxHctChromaAtTone
      • IinterfaceHctHuePeak
      • TtypeMaxHctChromaForHueMethod
      • IinterfaceMaxHctChromaForHueOptions
  • @pbroom/color-kit/driver
  • @pbroom/color-kit/react
Map

@pbroom/color-kit/hct/HCT

HctHuePeak

The chroma peak of an HCT hue, returned by maxHctChromaForHue.

interfaceimport type { HctHuePeak } from '@pbroom/color-kit/hct';index.ts:12
interface HctHuePeak {
  c: number;
  t: number;
}

Properties

cnumber
Maximum realized HCT chroma for the requested hue.
tnumber
Fractional HCT tone (0-100) where the max chroma occurs.

Also exported from

  • @pbroom/color-kitthe same declaration, re-exported

Your display: detecting

MIT licensedSource