@pbroom/color-kitTypes

P3

Display P3 color (a wider gamut than sRGB) with 0-1 channels. Holds gamma-encoded values (as from toP3) or linear-light values (as from linearSrgbToLinearP3), depending on the producer.

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

Properties

rnumber
Red: 0-1.
gnumber
Green: 0-1.
bnumber
Blue: 0-1.
alphanumber
Opacity: 0-1.