Calculate points for smooth bezier curves passing through a series of points uses https://github.com/soswow/fit-curve/blob/master/src/fit-curve.js uses ShapePoints.curveError=50 for error value
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
x1 |
number | Array.<number> | starting point or array of points [x1, y1, x2, y2, ... xn, yn] |
||||||||||||||||
y1 |
number |
<optional> |
||||||||||||||||
x2 |
number |
<optional> |
||||||||||||||||
y2 |
number |
<optional> |
||||||||||||||||
xn |
number |
<optional> |
ending point |
|||||||||||||||
yn |
number |
<optional> |
||||||||||||||||
options |
object |
<optional> |
Properties
|
- Source:
Returns:
[x1, y1, x2, y2, ... xn, yn]
- Type
- Array.<number>