Skip to content

Commit

Permalink
Fix links and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmcintyre committed May 17, 2024
1 parent bcf9134 commit 396243a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/color/p5.Color.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ p5.Color = class Color {
/**
* Sets the red component of a color.
*
* The range depends on the <a href="#/colorMode">colorMode()</a>. In the
* The range depends on the <a href="#/p5/colorMode">colorMode()</a>. In the
* default RGB mode it's between 0 and 255.
*
* @method setRed
Expand Down Expand Up @@ -613,7 +613,7 @@ p5.Color = class Color {
/**
* Sets the green component of a color.
*
* The range depends on the <a href="#/colorMode">colorMode()</a>. In the
* The range depends on the <a href="#/p5/colorMode">colorMode()</a>. In the
* default RGB mode it's between 0 and 255.
*
* @method setGreen
Expand Down Expand Up @@ -655,7 +655,7 @@ p5.Color = class Color {
/**
* Sets the blue component of a color.
*
* The range depends on the <a href="#/colorMode">colorMode()</a>. In the
* The range depends on the <a href="#/p5/colorMode">colorMode()</a>. In the
* default RGB mode it's between 0 and 255.
*
* @method setBlue
Expand Down Expand Up @@ -698,7 +698,7 @@ p5.Color = class Color {
* Sets the alpha (transparency) value of a color.
*
* The range depends on the
* <a href="#/colorMode">colorMode()</a>. In the default RGB mode it's
* <a href="#/p5/colorMode">colorMode()</a>. In the default RGB mode it's
* between 0 and 255.
*
* @method setAlpha
Expand Down
9 changes: 4 additions & 5 deletions src/core/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ p5.prototype.applyMatrix = function(...args) {
* // Translate the origin to the center.
* translate(50, 50);
*
* // Draw a red circle at the coordinates (25, 25).
* // Draw a blue circle at the coordinates (25, 25).
* fill('blue');
* circle(25, 25, 20);
*
* // Clear all transformations.
* // The origin is now at the top-left corner.
* resetMatrix();
*
* // Draw a blue circle at the coordinates (25, 25).
* // Draw a red circle at the coordinates (25, 25).
* fill('red');
* circle(25, 25, 20);
* }
Expand Down Expand Up @@ -317,9 +317,8 @@ p5.prototype.resetMatrix = function() {
* shapes to spin.
*
* @method rotate
* @param {Number} angle the angle of rotation, specified in radians
* or degrees, depending on current angleMode
* @param {p5.Vector|Number[]} [axis] (in 3d) the axis to rotate around
* @param {Number} angle angle of rotation in the current <a href="#/p5/angleMode">angleMode()</a>.
* @param {p5.Vector|Number[]} [axis] axis to rotate about in 3D.
* @chainable
*
* @example
Expand Down

0 comments on commit 396243a

Please sign in to comment.