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
  • @pbroom/color-kit/driver
  • @pbroom/color-kit/react
      • ffunctionuseColorPlaneRenderer
      • TtypeActiveColorPlaneRenderer
      • TtypeColorPlaneEdgeBehavior
      • TtypeColorPlaneRenderer
      • IinterfaceColorPlaneRendererHandle
      • TtypeColorPlaneSource
      • IinterfaceUseColorPlaneRendererOptions
Map

@pbroom/color-kit/react/Plane renderer

ColorPlaneEdgeBehavior

How a displayed plane paints colors outside the display gamut.

typeimport type { ColorPlaneEdgeBehavior } from '@pbroom/color-kit/react';color-plane-raster.ts:34
type ColorPlaneEdgeBehavior = 'transparent' | 'clamp';

Your display: detecting

MIT licensedSource