Constructor
new module:Spline(positionDefinition, points, tensionopt, optionsopt)
Spline constructor
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
positionDefinition | PositionDefinition | First point | ||
points | Array.<PositionDefinition> | | Set of points to go through or a single target point | ||
tension | Number | <optional> | Spline.defaultTension | Ratio of tension between points (0 means straight line, can take any value, but with weird results above 1) |
options | LineOptions | <optional> | Drawing options |
- Source