Skip to content

Commit dbdb30a

Browse files
committed
Rename curveVertex
1 parent b5a29d7 commit dbdb30a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/shape/vertex.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @module Shape
3-
* @submodule Vertex
3+
* @submodule Custom Shapes
44
* @for p5
55
* @requires core
66
* @requires constants
@@ -728,7 +728,7 @@ function vertex(p5, fn){
728728
* Note: `splineVertex()` won’t work when an argument is passed to
729729
* <a href="#/p5/beginShape">beginShape()</a>.
730730
*
731-
* @method curveVertex
731+
* @method splineVertex
732732
* @param {Number} x x-coordinate of the vertex
733733
* @param {Number} y y-coordinate of the vertex
734734
* @chainable
@@ -989,7 +989,7 @@ function vertex(p5, fn){
989989
*/
990990

991991
/**
992-
* @method curveVertex
992+
* @method splineVertex
993993
* @param {Number} x
994994
* @param {Number} y
995995
* @param {Number} [z] z-coordinate of the vertex.
@@ -1041,8 +1041,8 @@ function vertex(p5, fn){
10411041
* </code>
10421042
* </div>
10431043
*/
1044-
fn.curveVertex = function(...args) {
1045-
// p5._validateParameters('curveVertex', args);
1044+
fn.splineVertex = function(...args) {
1045+
// p5._validateParameters('splineVertex', args);
10461046
this._renderer.splineVertex(...args);
10471047
return this;
10481048
};
@@ -1071,7 +1071,7 @@ function vertex(p5, fn){
10711071
* built by calling <a href="#/p5/vertex">vertex()</a>,
10721072
* <a href="#/p5/bezierVertex">bezierVertex()</a>,
10731073
* <a href="#/p5/quadraticVertex">quadraticVertex()</a>, and/or
1074-
* <a href="#/p5/curveVertex">splineVertex()</a>. Calling
1074+
* <a href="#/p5/splineVertex">splineVertex()</a>. Calling
10751075
* `endShape()` will stop adding vertices to the
10761076
* shape. Each shape will be outlined with the current stroke color and filled
10771077
* with the current fill color.

0 commit comments

Comments
 (0)