Skip to content

Commit

Permalink
Merge pull request #7174 from DenisovichDev/ref-formatting
Browse files Browse the repository at this point in the history
Code block updates in `vertex.js`
  • Loading branch information
Qianqianye authored Aug 14, 2024
2 parents f9fcff8 + 185da68 commit 5a5987c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/shape/vertex.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ p5.prototype.bezierVertex = function(...args) {
* <a href="#/p5/beginShape">beginShape()</a> and
* <a href="#/p5/endShape">endShape()</a> in order to draw a curve:
*
* <code>
* ```js
* beginShape();
*
* // Add the first control point.
Expand All @@ -859,14 +859,14 @@ p5.prototype.bezierVertex = function(...args) {
* curveVertex(32, 91);
*
* endShape();
* </code>
* ```
*
* The code snippet above would only draw the curve between the anchor points,
* similar to the <a href="#/p5/curve">curve()</a> function. The segments
* between the control and anchor points can be drawn by calling
* `curveVertex()` with the coordinates of the control points:
*
* <code>
* ```js
* beginShape();
*
* // Add the first control point and draw a segment to it.
Expand All @@ -884,7 +884,7 @@ p5.prototype.bezierVertex = function(...args) {
* // curveVertex(32, 91);
*
* endShape();
* </code>
* ```
*
* The first two parameters, `x` and `y`, set the vertex’s location. For
* example, calling `curveVertex(10, 10)` adds a point to the curve at
Expand Down Expand Up @@ -2091,7 +2091,7 @@ p5.prototype.vertex = function(x, y, moveTo, u, v) {
* `normal()` will affect all following vertices until `normal()` is called
* again:
*
* <code>
* ```js
* beginShape();
*
* // Set the vertex normal.
Expand All @@ -2114,7 +2114,7 @@ p5.prototype.vertex = function(x, y, moveTo, u, v) {
* vertex(-30, 30, 0);
*
* endShape();
* </code>
* ```
*
* @method normal
* @param {p5.Vector} vector vertex normal as a <a href="#/p5.Vector">p5.Vector</a> object.
Expand Down

0 comments on commit 5a5987c

Please sign in to comment.