@dragonspark/chroma-kit
    Preparing search index...

    Function linearizeRGBColor

    • Converts an RGB color to its linearized form by applying the RGB gamma transfer function to each component of the color.

      Parameters

      • color: RGBColor

        An object representing the RGB color with properties r, g, and b. Each property represents a color channel value in the range [0, 1].

      Returns RGBColor

      A new RGBColor object with each color channel linearized using the gamma transfer function.