opsinjs

RampStepValue

One rung of a ramp, as the sRGB value that ships, the wide-gamut value where P3 has headroom, and whether sRGB had to clamp the chroma away.

How this is generated

Source: lib/color/derive.ts. Script: scripts/build-reference.mts. Command: pnpm run generate.

Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.

RampStepValue

One rung of a ramp, as the sRGB value that ships, the wide-gamut value where P3 has headroom, and whether sRGB had to clamp the chroma away.

KindDeclared in
interfacelib/color/derive.ts
export interface RampStepValue {
  step: RampStep
  srgb: Oklch
  p3?: Oklch
  clamped: boolean
  css: { srgb: string; p3?: string }
}

On this page