argbToLin function

LinRgb argbToLin(
  1. int argb
)

Decodes the RGB channels of argb to linear light (alpha ignored).

Implementation

LinRgb argbToLin(int argb) => (
  srgbDecode[(argb >> 16) & 0xFF],
  srgbDecode[(argb >> 8) & 0xFF],
  srgbDecode[argb & 0xFF],
);