Skip to content

Commit 4c7422b

Browse files
authored
Merge pull request #5320 from JetStarBlues/addVertexVariant
Add `vertex()` variant to documentation
2 parents 925f55b + 362e6b6 commit 4c7422b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/core/shape/vertex.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,9 +958,17 @@ p5.prototype.quadraticVertex = function(...args) {
958958
* @method vertex
959959
* @param {Number} x
960960
* @param {Number} y
961-
* @param {Number} z z-coordinate of the vertex
962-
* @param {Number} [u] the vertex's texture u-coordinate
963-
* @param {Number} [v] the vertex's texture v-coordinate
961+
* @param {Number} z z-coordinate of the vertex.
962+
* Defaults to 0 if not specified.
963+
* @chainable
964+
*/
965+
/**
966+
* @method vertex
967+
* @param {Number} x
968+
* @param {Number} y
969+
* @param {Number} [z]
970+
* @param {Number} u the vertex's texture u-coordinate
971+
* @param {Number} v the vertex's texture v-coordinate
964972
* @chainable
965973
*/
966974
p5.prototype.vertex = function(x, y, moveTo, u, v) {

0 commit comments

Comments
 (0)