API reference
Preparing search index…

ImGui.ColorEdit3

  • Edit an RGB color.

    Parameters

    label
    string | Uint8Array

    Widget label; interactive widgets also use it for ID generation. A ## suffix can distinguish IDs without displaying the suffix.

    col
    Float32Array

    Mutable RGB/RGBA color components; the widget writes edits in place. Color-edit flags determine RGB/HSV interpretation and HDR range. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.

    flags
    number = 0

    ImGuiColorEditFlags options controlling this operation; combine compatible flag bits with |.

    Returns

    boolean

    True if the widget changed the supplied value; false if it remained unchanged.

    Left-click the color square to open a picker; right-click it to open the options menu.

    Supply contiguous color components in a Float32Array. A subarray may select the color components within a larger buffer; the component count describes the accessible values, not a separate native array object.

    Source & inheritance

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