API reference
Preparing search index…

ImGui.ImDrawList_AddNgonEx

  • Append the outline of a regular polygon to the draw list.

    Parameters

    self

    ImDrawList handle on which this method operates.

    center

    Shape center in absolute screen coordinates.

    radius
    number

    Circle or arc radius in screen pixels.

    col
    number

    Packed ImU32 RGBA color; alpha controls opacity.

    num_segments
    number

    Polygon side count, at least 3; unlike circles this is not an automatic tessellation value.

    thickness
    number = 1.0

    Stroke thickness in screen pixels.

    Returns

    void
    Source & inheritance

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