API reference
Preparing search index…

ImGui.ImDrawList_AddBezierCubic

  • Append a stroked cubic Bezier curve to the draw list.

    Parameters

    self

    ImDrawList handle on which this method operates.

    p1

    Ordered vertex or start point p1 in absolute screen coordinates.

    p2

    Bezier control point p2 in absolute screen coordinates.

    p3

    Bezier control point p3 in absolute screen coordinates.

    p4

    Bezier end point p4 in absolute screen coordinates.

    col
    number

    Packed ImU32 RGBA color; alpha controls opacity.

    thickness
    number

    Stroke thickness in screen pixels.

    num_segments
    number = 0

    Curve tessellation segment count; 0 lets ImGui choose automatically.

    Returns

    void

    Cubic Bezier (4 control points)

    Source & inheritance

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