Classes
Methods
anchorpts(ap1x, ap1y, ap2x, ap2y) → {BezierPrimitive}
Specify the anchor points.
The position is always equal to the first anchor point.
Parameters:
Name | Type | Description |
---|---|---|
ap1x |
number | first anchor point x coord |
ap1y |
number | first anchor point y coord |
ap2x |
number | second anchor point x coord |
ap2y |
number | second anchor point y coord |
- Source:
Returns:
- Type
- BezierPrimitive
anchorpts(ap1x, ap1y, ap2x, ap2y) → {BezierPrimitive}
Specify the anchor points.
The position is always equal to the first anchor point.
Parameters:
Name | Type | Description |
---|---|---|
ap1x |
number | first anchor point x coord |
ap1y |
number | first anchor point y coord |
ap2x |
number | second anchor point x coord |
ap2y |
number | second anchor point y coord |
- Source:
Returns:
- Type
- BezierPrimitive
controlpts(cp1x, cp1y, cp2x, cp2y) → {BezierPrimitive}
Specify the control points
Parameters:
Name | Type | Description |
---|---|---|
cp1x |
number | first control point x coord |
cp1y |
number | first control point y coord |
cp2x |
number | second control point x coord |
cp2y |
number | second control point y coord |
- Source:
Returns:
- Type
- BezierPrimitive
controlpts(cp1x, cp1y, cp2x, cp2y) → {BezierPrimitive}
Specify the control points
Parameters:
Name | Type | Description |
---|---|---|
cp1x |
number | first control point x coord |
cp1y |
number | first control point y coord |
cp2x |
number | second control point x coord |
cp2y |
number | second control point y coord |
- Source:
Returns:
- Type
- BezierPrimitive
end(x, y) → {BezierPrimitive}
Specify the second anchor point
Parameters:
Name | Type | Description |
---|---|---|
x |
number | second anchor point x coord |
y |
number | second anchor point y coord |
- Source:
Returns:
- Type
- BezierPrimitive
end(x, y) → {BezierPrimitive}
Specify the second anchor point
Parameters:
Name | Type | Description |
---|---|---|
x |
number | second anchor point x coord |
y |
number | second anchor point y coord |
- Source:
Returns:
- Type
- BezierPrimitive
start(x, y) → {BezierPrimitive}
Specify the first anchor point.
Parameters:
Name | Type | Description |
---|---|---|
x |
number | first anchor point x coord |
y |
number | first anchor point y coord |
- Source:
Returns:
- Type
- BezierPrimitive
start(x, y) → {BezierPrimitive}
Specify the first anchor point.
Parameters:
Name | Type | Description |
---|---|---|
x |
number | first anchor point x coord |
y |
number | first anchor point y coord |
- Source:
Returns:
- Type
- BezierPrimitive