opsinjs

ApcaVerdict

The result of one APCA measurement, with the signed Lc, its polarity, the floor for that use, and how far above or below the floor it landed.

How this is generated

Source: lib/color/apca.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.

ApcaVerdict

The result of one APCA measurement, with the signed Lc, its polarity, the floor for that use, and how far above or below the floor it landed.

KindDeclared in
interfacelib/color/apca.ts
export interface ApcaVerdict {
  lc: number
  magnitude: number
  polarity: "dark-on-light" | "light-on-dark" | "indistinguishable"
  use: ContrastUse
  floor: number
  passes: boolean
  headroom: number
}

On this page