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
      • IinterfacePlaneComputeBackend
      • IinterfacePlaneComputeRequest
      • IinterfacePlaneComputeResponse
      • IinterfacePlaneComputeScheduler
      • TtypePlaneComputeBackendKind
      • IinterfacePlaneComputeDebugTrace
      • TtypePlaneComputePerformanceProfile
      • TtypePlaneComputePriority
      • TtypePlaneComputeQuality
      • IinterfacePlaneComputeScheduleTrace
      • IinterfacePlaneComputeSchedulerOptions
      • IinterfacePlaneComputeTelemetryBackendStats
      • IinterfacePlaneComputeTelemetryBucket
      • IinterfacePlaneComputeTelemetrySnapshot
  • @pbroom/color-kit/hct
  • @pbroom/color-kit/driver
  • @pbroom/color-kit/react
Map

@pbroom/color-kit/compute/Types

PlaneComputeBackend

Something that can execute plane compute requests synchronously.

interfaceimport type { PlaneComputeBackend } from '@pbroom/color-kit/compute';types.ts:97
interface PlaneComputeBackend {
  kind: 'js';
  run: (request: PlaneComputeRequest) => PlaneComputeResponse;
}

Properties

kind'js'
Backend identifier.
run(request: PlaneComputeRequest) => PlaneComputeResponse
Runs every query in the request and returns packed results.

Your display: detecting

MIT licensedSource