opsinjs

Rgb

Red, green and blue, each 0 to 1, in whichever space the function says.

How this is generated

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

Rgb

Red, green and blue, each 0 to 1, in whichever space the function says.

KindDeclared in
interfacelib/color/oklch.ts
export interface Rgb {
  r: number
  g: number
  b: number
  alpha?: number
}

On this page