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
      • TtypeHueInterpolationMethod
      • IinterfaceInterpolationOptions
      • TtypeInterpolationSpace
  • @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/Interpolation

HueInterpolationMethod

CSS Color 4 hue interpolation method. Only used by polar spaces ('oklch'); ignored for rectangular spaces.

typeimport type { HueInterpolationMethod } from '@pbroom/color-kit';index.ts:62
type HueInterpolationMethod =
  | 'shorter'
  | 'longer'
  | 'increasing'
  | 'decreasing';

See also

www.w3.org/TR/css-color-4/#hue-interpolation

Your display: detecting

MIT licensedSource