Skip to main content

Function: normalizeByteColor3()

normalizeByteColor3(color?, useByteColors?): NumberArray3

Defined in: lib/color/normalize-byte-colors.ts:26

Normalizes an RGB semantic color to float space when byte-style colors are enabled.

Parameters​

color?​

readonly [number, number, number] = ...

Input RGB semantic color.

useByteColors?​

boolean = true

When true, divide components by 255.

Returns​

NumberArray3

The normalized RGB color.