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

    Function isInSRGB

    • Determines if a given RGBColor object is within the sRGB color space.

      The sRGB color space is defined by having red (r), green (g), and blue (b) components in the range of 0 to 1, inclusive. Additionally, if an alpha component is defined, it must also be within the range of 0 to 1, inclusive.

      Parameters

      • color: RGBColor

        The RGBColor object containing the color components (r, g, b, and optionally alpha).

      Returns boolean

      • Returns true if the color is within the sRGB color space; otherwise, false.