@pbroom/color-kitTypes

LinearRgb

Linear-light sRGB color with nominal 0-1 channels. Channels may fall outside [0, 1] for out-of-gamut colors.

interfaceimport type { LinearRgb } from '@pbroom/color-kit';types.ts:46
interface LinearRgb {
  r: number;
  g: number;
  b: number;
  alpha: number;
}

Properties

rnumber
Red, linear light (nominally 0-1).
gnumber
Green, linear light (nominally 0-1).
bnumber
Blue, linear light (nominally 0-1).
alphanumber
Opacity: 0-1.