Skip to content

rgb8ToRgb1

rgb8ToRgb1(value): RgbCoords

Defined in: packages/math-color/src/conversions/rgb-rgb8.ts:31

Converts RGB values from the range [0, 255] to [0, 1].

Rgb8

The RGB color in the range [0, 255].

RgbCoords

The corresponding RGB color in the range [0, 1].