From 185da68f534c96d49e9d72195cebf22d20568532 Mon Sep 17 00:00:00 2001 From: DenisovichDev Date: Wed, 14 Aug 2024 22:32:52 +0530 Subject: [PATCH] Code block updates in `vertex.js` --- src/core/shape/vertex.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/core/shape/vertex.js b/src/core/shape/vertex.js index a91428c568..722b26d716 100644 --- a/src/core/shape/vertex.js +++ b/src/core/shape/vertex.js @@ -845,7 +845,7 @@ p5.prototype.bezierVertex = function(...args) { * beginShape() and * endShape() in order to draw a curve: * - * + * ```js * beginShape(); * * // Add the first control point. @@ -859,14 +859,14 @@ p5.prototype.bezierVertex = function(...args) { * curveVertex(32, 91); * * endShape(); - * + * ``` * * The code snippet above would only draw the curve between the anchor points, * similar to the curve() function. The segments * between the control and anchor points can be drawn by calling * `curveVertex()` with the coordinates of the control points: * - * + * ```js * beginShape(); * * // Add the first control point and draw a segment to it. @@ -884,7 +884,7 @@ p5.prototype.bezierVertex = function(...args) { * // curveVertex(32, 91); * * endShape(); - * + * ``` * * 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 @@ -2091,7 +2091,7 @@ p5.prototype.vertex = function(x, y, moveTo, u, v) { * `normal()` will affect all following vertices until `normal()` is called * again: * - * + * ```js * beginShape(); * * // Set the vertex normal. @@ -2114,7 +2114,7 @@ p5.prototype.vertex = function(x, y, moveTo, u, v) { * vertex(-30, 30, 0); * * endShape(); - * + * ``` * * @method normal * @param {p5.Vector} vector vertex normal as a p5.Vector object.