API reference
Preparing search index…

ImGui.ColorButtonEx

  • Display a color swatch button.

    Parameters

    desc_id
    string | Uint8Array

    String identifier hashed with the current ID stack to distinguish this item or scope.

    col

    Floating-point RGBA color; alpha controls opacity.

    flags
    number = 0

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

    size

    Color button width and height in pixels; each zero axis uses the standard frame height.

    Returns

    boolean

    True when the item is activated this frame; this is an activation event, not a persistent selected state.

    display a color square/button, hover for details, return true when pressed.

    Source & inheritance

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