drawBezier(opt: DrawBezierOpt): void

Draw a cubic Bezier curve.

paramopt- The draw cubic bezier options.

drawBezier({
    pt1: vec2(100, 100),
    pt2: vec2(200, 100),
    pt3: vec2(200, 200),
    pt4: vec2(100, 200),
    width: 2,
    color: GREEN
});

sincev3001.0

kaplay logo

Misc

Layer