Available since LÖVE 0.9.0
This function is not supported in earlier versions.
Creates a new BezierCurve object.
The number of vertices in the control polygon determines the degree of the curve, e.g. three vertices define a quadratic (degree 2) Bézier curve, four vertices define a cubic (degree 3) Bézier curve, etc.
curve = love.math.newBezierCurve( vertices )
table vertices
{x1, y1, x2, y2, x3, y3, ...}
.BezierCurve curve
curve = love.math.newBezierCurve( x1, y1, x2, y2, x3, y3, ... )
number x1
number y1
number x2
number y2
number x3
number y3
BezierCurve curve
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.math.newBezierCurve