API reference
Preparing search index…

ImGui.ImDrawList_AddNgon

  • 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.

    Returns

    void

    Implied thickness = 1.0

    Source & inheritance

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