decodeRGB8

external fun decodeRGB8(encoded: Double, result: Color): Color(source)

Decodes RGB values at 8-bit precision from a signle float, equivalent to 0xFFFFFF representation in JavaScript. Perceptually near-lossless in the "srgb" color space; "srgb-linear" and wide-gamut color spaces benefit from 10+ bit precision.

See also