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

    Function rgb

    • Creates a new RGB color object with the specified components.

      This is the primary factory function for creating 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 RGBColor

      A new RGB color object