API reference
Preparing search index…

ImGui.ImDrawList_AddConvexPolyFilled

  • Append a filled convex polygon to the draw list.

    Parameters

    self

    ImDrawList handle on which this method operates.

    points
    Float32Array

    Float32Array of consecutive [x,y] points in screen coordinates; provide at least 2 * num_points elements. Filled polygons require clockwise order. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.

    num_points
    number

    Number of coordinate pairs to read from points.

    col
    number

    Packed ImU32 RGBA color; alpha controls opacity.

    Returns

    void
    Source & inheritance

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