File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -409,10 +409,16 @@ function vertex(p5, fn){
409
409
* <a href="#/p5/bezier">bezier()</a> function. `bezierVertex()` must be
410
410
* called between the
411
411
* <a href="#/p5/beginShape">beginShape()</a> and
412
- * <a href="#/p5/endShape">endShape()</a> functions. There must be at least
413
- * one call to <a href="#/p5/vertex">bezierVertex()</a>, before
412
+ * <a href="#/p5/endShape">endShape()</a> functions.
413
+ * Bézier need a starting point. Building a shape
414
+ * only wiht Bézier curves needs one initial
415
+ * call to <a href="#/p5/vertex">bezierVertex()</a>, before
414
416
* a number of `bezierVertex()` calls that is a multiple of the parameter
415
417
* set by <a href="#/p5/bezierOrder">bezierOrder(...)</a> (default 3).
418
+ * But shapes can mix different types of vertices, so if there
419
+ * are some previous vertizes, then the initial anchor is not needed,
420
+ * only the multiples of 3 (or the Bézier order) calls to
421
+ * `bezierVertext` for each curve.
416
422
*
417
423
* Each curve of order 3 requires three calls to `bezierVertext`, so
418
424
* 2 curves would need 7 calls to `bezierVertex()`:
You can’t perform that action at this time.
0 commit comments