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

    Function p3

    • Creates a new DCI-P3 color object with the specified components.

      This is the primary factory function for creating DCI-P3 compatible RGB colors in the library. The created object includes methods for conversion to other color spaces and string representations.

      Parameters

      • r: number

        The red component (0-1)

      • g: number

        The green component (0-1)

      • b: number

        The blue component (0-1)

      • Optionalalpha: number

        The alpha (opacity) component (0-1), optional

      Returns P3Color

      A new P3 color object