Skip to content

Commit 5a5987c

Browse files
authored
Merge pull request #7174 from DenisovichDev/ref-formatting
Code block updates in `vertex.js`
2 parents f9fcff8 + 185da68 commit 5a5987c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/shape/vertex.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ p5.prototype.bezierVertex = function(...args) {
845845
* <a href="#/p5/beginShape">beginShape()</a> and
846846
* <a href="#/p5/endShape">endShape()</a> in order to draw a curve:
847847
*
848-
* <code>
848+
* ```js
849849
* beginShape();
850850
*
851851
* // Add the first control point.
@@ -859,14 +859,14 @@ p5.prototype.bezierVertex = function(...args) {
859859
* curveVertex(32, 91);
860860
*
861861
* endShape();
862-
* </code>
862+
* ```
863863
*
864864
* The code snippet above would only draw the curve between the anchor points,
865865
* similar to the <a href="#/p5/curve">curve()</a> function. The segments
866866
* between the control and anchor points can be drawn by calling
867867
* `curveVertex()` with the coordinates of the control points:
868868
*
869-
* <code>
869+
* ```js
870870
* beginShape();
871871
*
872872
* // Add the first control point and draw a segment to it.
@@ -884,7 +884,7 @@ p5.prototype.bezierVertex = function(...args) {
884884
* // curveVertex(32, 91);
885885
*
886886
* endShape();
887-
* </code>
887+
* ```
888888
*
889889
* The first two parameters, `x` and `y`, set the vertex’s location. For
890890
* example, calling `curveVertex(10, 10)` adds a point to the curve at
@@ -2091,7 +2091,7 @@ p5.prototype.vertex = function(x, y, moveTo, u, v) {
20912091
* `normal()` will affect all following vertices until `normal()` is called
20922092
* again:
20932093
*
2094-
* <code>
2094+
* ```js
20952095
* beginShape();
20962096
*
20972097
* // Set the vertex normal.
@@ -2114,7 +2114,7 @@ p5.prototype.vertex = function(x, y, moveTo, u, v) {
21142114
* vertex(-30, 30, 0);
21152115
*
21162116
* endShape();
2117-
* </code>
2117+
* ```
21182118
*
21192119
* @method normal
21202120
* @param {p5.Vector} vector vertex normal as a <a href="#/p5.Vector">p5.Vector</a> object.

0 commit comments

Comments
 (0)