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

    Function applyRGBGammaTransfer

    • Applies gamma correction to a given color channel value.

      Applies the RGB gamma transfer function to the input color channel value. This function is used to correct for the non-linear nature of the human eye's response to light.

      Parameters

      • channel: number

        The input color channel value, normalized in the range [0, 1].

      Returns number

      The gamma-corrected color channel value.