Skip to content

Commit 275ab58

Browse files
authored
Merge pull request #7058 from nickmcintyre/ref-typos
Fix links and typos
2 parents f93bc32 + 396243a commit 275ab58

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/color/p5.Color.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ p5.Color = class Color {
571571
/**
572572
* Sets the red component of a color.
573573
*
574-
* The range depends on the <a href="#/colorMode">colorMode()</a>. In the
574+
* The range depends on the <a href="#/p5/colorMode">colorMode()</a>. In the
575575
* default RGB mode it's between 0 and 255.
576576
*
577577
* @method setRed
@@ -613,7 +613,7 @@ p5.Color = class Color {
613613
/**
614614
* Sets the green component of a color.
615615
*
616-
* The range depends on the <a href="#/colorMode">colorMode()</a>. In the
616+
* The range depends on the <a href="#/p5/colorMode">colorMode()</a>. In the
617617
* default RGB mode it's between 0 and 255.
618618
*
619619
* @method setGreen
@@ -655,7 +655,7 @@ p5.Color = class Color {
655655
/**
656656
* Sets the blue component of a color.
657657
*
658-
* The range depends on the <a href="#/colorMode">colorMode()</a>. In the
658+
* The range depends on the <a href="#/p5/colorMode">colorMode()</a>. In the
659659
* default RGB mode it's between 0 and 255.
660660
*
661661
* @method setBlue
@@ -698,7 +698,7 @@ p5.Color = class Color {
698698
* Sets the alpha (transparency) value of a color.
699699
*
700700
* The range depends on the
701-
* <a href="#/colorMode">colorMode()</a>. In the default RGB mode it's
701+
* <a href="#/p5/colorMode">colorMode()</a>. In the default RGB mode it's
702702
* between 0 and 255.
703703
*
704704
* @method setAlpha

src/core/transform.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,15 @@ p5.prototype.applyMatrix = function(...args) {
266266
* // Translate the origin to the center.
267267
* translate(50, 50);
268268
*
269-
* // Draw a red circle at the coordinates (25, 25).
269+
* // Draw a blue circle at the coordinates (25, 25).
270270
* fill('blue');
271271
* circle(25, 25, 20);
272272
*
273273
* // Clear all transformations.
274274
* // The origin is now at the top-left corner.
275275
* resetMatrix();
276276
*
277-
* // Draw a blue circle at the coordinates (25, 25).
277+
* // Draw a red circle at the coordinates (25, 25).
278278
* fill('red');
279279
* circle(25, 25, 20);
280280
* }
@@ -317,9 +317,8 @@ p5.prototype.resetMatrix = function() {
317317
* shapes to spin.
318318
*
319319
* @method rotate
320-
* @param {Number} angle the angle of rotation, specified in radians
321-
* or degrees, depending on current angleMode
322-
* @param {p5.Vector|Number[]} [axis] (in 3d) the axis to rotate around
320+
* @param {Number} angle angle of rotation in the current <a href="#/p5/angleMode">angleMode()</a>.
321+
* @param {p5.Vector|Number[]} [axis] axis to rotate about in 3D.
323322
* @chainable
324323
*
325324
* @example

0 commit comments

Comments
 (0)