math docs
    Preparing search index...

    Function setFromSRGB

    • Set out from an sRGB gamma-encoded [r, g, b] array with values in [0, 1]. Converts from sRGB gamma space to linear. Returns out.

      Parameters

      • out: color.Color
      • srgb: readonly [number, number, number]

      Returns color.Color