Skip to content

Commit 34ddffe

Browse files
authored
adding little detail about splineProperty(ends)
1 parent c8a5a71 commit 34ddffe

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/shape/custom_shapes.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,6 +2082,12 @@ function customShapes(p5, fn) {
20822082
* such as: `splineProperty('ends', EXCLUDE)` to exclude
20832083
* vertices, or `splineProperty('ends', INCLUDE)` to include them.
20842084
*
2085+
* Set `splineProperty('ends', EXCLUDE)` to draw only the middle
2086+
* segment of a spline with four points. For example, with points
2087+
* `(a,b)`, `(c,d)`, `(e,f)`, `(g,h)` the call `spline(a,b, c,d, e,f, g,h)`
2088+
* will render only the segment from `(c,d)` to `(e,f)`,
2089+
* skipping the outer spans `(a,b)->(c,d)` and `(e,f)->(g,h)`.
2090+
*
20852091
* @method splineProperty
20862092
* @param {String} property
20872093
* @param value Value to set the given property to.

0 commit comments

Comments
 (0)