RSX Code Reference
    Preparing search index...
    • rsx
    • HueSaturationValue

    Class HueSaturationValue

    The HueSaturationValue class implements a color in the hue-saturation-value colorspace. The color can be converted to and from an SRGBColor.

    Index
    • Parameters

      • Optionalhue: number
      • Optionalsaturation: number
      • Optionalvalue: number

      Returns HueSaturationValue

    hue: number

    The hue component.

    saturation: number

    The satuartion component.

    value: number

    The value component.

    • Multiplies the current hue, saturation, and value by the provided values.

      Parameters

      • hue: number

        The multiplier for the hue component.

      • saturation: number

        The multiplier for the saturation component.

      • value: number

        The multiplier for the value component.

      Returns HueSaturationValue

      The updated HueSaturationValue instance.

    • Multiplies the given values with this one and returns the result as a copy.

      Parameters

      • hue: number

        The hue component to multiply.

      • saturation: number

        The saturation component to multiply.

      • value: number

        The value component to multiply.

      Returns HueSaturationValue

      The resulting HueSaturationValue.

    • Converts the HueSaturationValue color into RGB color space as Color.

      Returns Color

      Color.

      No further color-space transformation is done. The HSV values of this instance are assumed to be in the same color-space as the resulting color value.

    • Converts the HueSaturationValue color into RGB color space.

      Returns { b: number; g: number; r: number }

      Color in RGB color space.

    • Converts the HueSaturationValue color into RGB color space as SRGBColor.

      Returns SRGBColor

      SRGBColor.

      No further color-space transformation is done. The HSV values of this instance are assumed to be in the same color-space as the resulting color value.

    • Returns string