@@ -845,7 +845,7 @@ p5.prototype.bezierVertex = function(...args) {
845
845
* <a href="#/p5/beginShape">beginShape()</a> and
846
846
* <a href="#/p5/endShape">endShape()</a> in order to draw a curve:
847
847
*
848
- * <code>
848
+ * ```js
849
849
* beginShape();
850
850
*
851
851
* // Add the first control point.
@@ -859,14 +859,14 @@ p5.prototype.bezierVertex = function(...args) {
859
859
* curveVertex(32, 91);
860
860
*
861
861
* endShape();
862
- * </code>
862
+ * ```
863
863
*
864
864
* The code snippet above would only draw the curve between the anchor points,
865
865
* similar to the <a href="#/p5/curve">curve()</a> function. The segments
866
866
* between the control and anchor points can be drawn by calling
867
867
* `curveVertex()` with the coordinates of the control points:
868
868
*
869
- * <code>
869
+ * ```js
870
870
* beginShape();
871
871
*
872
872
* // Add the first control point and draw a segment to it.
@@ -884,7 +884,7 @@ p5.prototype.bezierVertex = function(...args) {
884
884
* // curveVertex(32, 91);
885
885
*
886
886
* endShape();
887
- * </code>
887
+ * ```
888
888
*
889
889
* The first two parameters, `x` and `y`, set the vertex’s location. For
890
890
* 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) {
2091
2091
* `normal()` will affect all following vertices until `normal()` is called
2092
2092
* again:
2093
2093
*
2094
- * <code>
2094
+ * ```js
2095
2095
* beginShape();
2096
2096
*
2097
2097
* // Set the vertex normal.
@@ -2114,7 +2114,7 @@ p5.prototype.vertex = function(x, y, moveTo, u, v) {
2114
2114
* vertex(-30, 30, 0);
2115
2115
*
2116
2116
* endShape();
2117
- * </code>
2117
+ * ```
2118
2118
*
2119
2119
* @method normal
2120
2120
* @param {p5.Vector } vector vertex normal as a <a href="#/p5.Vector">p5.Vector</a> object.
0 commit comments