Preparing search index...
    • Converts an HSV color to RGB. This function takes a color in HSV format (Hue, Saturation, Value) and converts it to RGB format (Red, Green, Blue). The function can accept either a vec4 representing the HSV color or a number representing the hue.

      Parameters

      • colHSV: number | vec4

        A vec4 representing the HSV color (hue, saturation, value, alpha) or a number representing the hue. If a number is provided, saturation, value, and alpha must also be provided.

      • Optionalsaturation: number

        The saturation component (0 to 1).

      • Optionalvalue: number

        The value (brightness) component (0 to 1).

      • Optionalalpha: number

        The alpha (opacity) component (0 to 1).

      Returns vec4

      A vec4 representing the RGB color (red, green, blue, alpha).