math docs
    Preparing search index...

    Function fromSRGB

    • Create a new Color from an sRGB gamma-encoded [r, g, b] array with values in [0, 1].

      Parameters

      • srgb: [number, number, number]

      Returns color.Color