Module: shape-points/bezierCurveTo

Calculate points for a bezier curve with a starting point and two control points from https://stackoverflow.com/a/15399173/1955997

Parameters:
Name Type Attributes Default Description
x1 number

starting point (usually a moveTo)

y1 number

starting point

cp1x number

first control point

cp1y number

first control point

cp2x number

second control point

cp2y number

second control point

x2 number

ending point

y2 number

ending point

pointsInArc number <optional>
5
Source:
Returns:

[x1, y1, x2, y2, ... xn, yn]

Type
array