Skip to content

raylib.DrawSplineBezierCubic

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]

Parameters

Parameter Default Value Note
points
thick 1.0
color WHITE

Return value

None.

Notes

Example

// Draw a cubic Bezier spline: start, ctrl1, ctrl2, end
pts = [[50, 200], [100, 50], [250, 350], [350, 200]]
raylib.DrawSplineBezierCubic pts, 2, raylib.BLUE

Clone this wiki locally