API
API reference
Every export of color-kit, organized by entry point in package order.
490 documented exports7 entry pointsgenerated from source
@pbroom/color-kitThe engine: OKLCH-canonical conversion, contrast, gamut mapping, harmony, manipulation and plane queries.types · conversion · contrast · harmony · scale · utilities · interpolation · manipulation · gamut@pbroom/color-kit/planeDefine 2D color planes and query their gamut and contrast regions, boundaries and paths.gamut · mapping · compile · models · queries · operations · types · tracing@pbroom/color-kit/interopTuples, packed buffers and allocation-free writers for canvas, WebGL, WebGPU and three.js.buffers · types · writers · readers@pbroom/color-kit/computeSchedule plane compute on the JS backend, with telemetry.scheduling · packing · types@pbroom/color-kit/hctMaterial HCT conversion, gamut limits and tonal helpers.hct@pbroom/color-kit/driverHeadless picker state: color state, area and slider coordinate mapping, input parsing.color area · drag controller · color slider · slider gradient · color input · color string input · color state · multi color@pbroom/color-kit/reactReact state and plane hooks on top of the driver: Color, useColor, useColorPlaneRenderer and geometry hooks.color · plane renderer · plane geometry · performance