|
1 | 1 | /**
|
2 | 2 | * @module Shape
|
3 |
| - * @submodule Vertex |
| 3 | + * @submodule Custom Shapes |
4 | 4 | * @for p5
|
5 | 5 | * @requires core
|
6 | 6 | * @requires constants
|
@@ -728,7 +728,7 @@ function vertex(p5, fn){
|
728 | 728 | * Note: `splineVertex()` won’t work when an argument is passed to
|
729 | 729 | * <a href="#/p5/beginShape">beginShape()</a>.
|
730 | 730 | *
|
731 |
| - * @method curveVertex |
| 731 | + * @method splineVertex |
732 | 732 | * @param {Number} x x-coordinate of the vertex
|
733 | 733 | * @param {Number} y y-coordinate of the vertex
|
734 | 734 | * @chainable
|
@@ -989,7 +989,7 @@ function vertex(p5, fn){
|
989 | 989 | */
|
990 | 990 |
|
991 | 991 | /**
|
992 |
| - * @method curveVertex |
| 992 | + * @method splineVertex |
993 | 993 | * @param {Number} x
|
994 | 994 | * @param {Number} y
|
995 | 995 | * @param {Number} [z] z-coordinate of the vertex.
|
@@ -1041,8 +1041,8 @@ function vertex(p5, fn){
|
1041 | 1041 | * </code>
|
1042 | 1042 | * </div>
|
1043 | 1043 | */
|
1044 |
| - fn.curveVertex = function(...args) { |
1045 |
| - // p5._validateParameters('curveVertex', args); |
| 1044 | + fn.splineVertex = function(...args) { |
| 1045 | + // p5._validateParameters('splineVertex', args); |
1046 | 1046 | this._renderer.splineVertex(...args);
|
1047 | 1047 | return this;
|
1048 | 1048 | };
|
@@ -1071,7 +1071,7 @@ function vertex(p5, fn){
|
1071 | 1071 | * built by calling <a href="#/p5/vertex">vertex()</a>,
|
1072 | 1072 | * <a href="#/p5/bezierVertex">bezierVertex()</a>,
|
1073 | 1073 | * <a href="#/p5/quadraticVertex">quadraticVertex()</a>, and/or
|
1074 |
| - * <a href="#/p5/curveVertex">splineVertex()</a>. Calling |
| 1074 | + * <a href="#/p5/splineVertex">splineVertex()</a>. Calling |
1075 | 1075 | * `endShape()` will stop adding vertices to the
|
1076 | 1076 | * shape. Each shape will be outlined with the current stroke color and filled
|
1077 | 1077 | * with the current fill color.
|
|
0 commit comments