Skip to content

Code block updates in vertex.js #7174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading