API documentation
| Module | Description |
|
color.alpha
|
Straight-alpha and premultiplied color values.
|
|
color.cielab
|
CIE 1976 L*a*b* values referenced to D50.
|
|
color.composite
|
Alpha compositing for premultiplied linear-light sRGB.
|
|
color.cvd
|
Model-specific color-vision-deficiency transformations in linear-light sRGB.
|
|
color.difference
|
Measure perceptual distance between Oklab colors.
|
|
color.gamut
|
Diagnose and handle colors outside the sRGB gamut.
|
|
color.hsl
|
HSL color values and conversion to and from encoded sRGB.
|
|
color.hsv
|
HSV color values and conversion to and from encoded sRGB.
|
|
color.interpolate
|
Color interpolation with explicit color-space and hue semantics.
|
|
color.oklab
|
Oklab values and conversion to and from CIE XYZ D65.
|
|
color.oklch
|
OKLCH values, degree-based hue handling, and component replacement.
|
|
color.p3
|
Display-P3 encoded and linear-light values.
|
|
color.result
|
Shared public Result vocabulary for fallible color-boundary operations.
|
|
color.rgb
|
Encoded and linear-light sRGB values.
|
|
color.storage
|
Compact encoded-sRGB storage values.
|
|
color.tone
|
Build raw OKLCH tone schedules without imposing palette policy.
|
|
color.wcag
|
Measure WCAG 2 relative luminance and contrast for sRGB.
|
|
color.xyz
|
CIE XYZ values referenced to D65 and conversions to and from linear-light sRGB.
|
|
color.ycbcr
|
Explicit YCbCr values and conversion to encoded and linear-light sRGB.
|
|
color
|
Public entry module for color-d.
|