Sets multiple properties for spline curves at once.
splineProperties() accepts an object with key-value pairs to configure how spline curves are drawn. This is a convenient way to set multiple spline properties with a single function call, rather than calling splineProperty() multiple times.
The properties object can include:
tightness: A number that controls how tightly the curve fits to the vertex points. The default value is 0. Positive values make the curve tighter (straighter), while negative values make it looser. Values between -5 and 5 work best.ends: Controls whether to draw the end segments of the spline. Set toEXCLUDEto skip drawing the segments between the first and second points and between the second-to-last and last points. This is useful when you want to use the first and last points as control points only.
splineProperties() affects curves drawn with splineVertex() within beginShape() and endShape(), as well as curves drawn with spline(). The properties remain active until changed by another call to splineProperties() or splineProperty().
Examples
Syntax
splineProperties(values)
Parameters
values
Object: an object containing spline property key-value pairs
Returns
Object:
Notice any errors or typos? Please let us know. Please feel free to edit src/shape/custom_shapes.js and open a pull request!