API reference
Preparing search index…

ImGui.ColorConvertRGBtoHSV

  • Convert a color from RGB components to hue, saturation, and value.

    Parameters

    r
    number

    Red/green/blue input component for RGB-to-HSV conversion, normally in the 0 to 1 range.

    g
    number

    Red/green/blue input component for RGB-to-HSV conversion, normally in the 0 to 1 range.

    b
    number

    Red/green/blue input component for RGB-to-HSV conversion, normally in the 0 to 1 range.

    out_h
    Float32Array

    Writable Float32Array[0] receiving the corresponding HSV component. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.

    out_s
    Float32Array

    Writable Float32Array[0] receiving the corresponding HSV component. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.

    out_v
    Float32Array

    Writable Float32Array[0] receiving the corresponding HSV component. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.

    Returns

    void
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0