Skip to content

Commit e883c22

Browse files
authored
Merge pull request #8683 from mikhailbond1/fix/colorMode-link
Docs: fix incorrect colorMode() reference links
2 parents 72c7f4b + c9384f4 commit e883c22

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/color/creating_reading.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ p5.prototype.alpha = function(c) {
122122
* a CSS color string.
123123
*
124124
* By default, `blue()` returns a color's blue value in the range 0
125-
* to 255. If the <a href="#/colorMode">colorMode()</a> is set to RGB, it
125+
* to 255. If the <a href="#/p5/colorMode">colorMode()</a> is set to RGB, it
126126
* returns the blue value in the given range.
127127
*
128128
* @method blue
@@ -258,7 +258,7 @@ p5.prototype.blue = function(c) {
258258
* a CSS color string.
259259
*
260260
* By default, `brightness()` returns a color's HSB brightness in the range 0
261-
* to 100. If the <a href="#/colorMode">colorMode()</a> is set to HSB, it
261+
* to 100. If the <a href="#/p5/colorMode">colorMode()</a> is set to HSB, it
262262
* returns the brightness value in the given range.
263263
*
264264
* @method brightness
@@ -697,7 +697,7 @@ p5.prototype.color = function(...args) {
697697
* a CSS color string.
698698
*
699699
* By default, `green()` returns a color's green value in the range 0
700-
* to 255. If the <a href="#/colorMode">colorMode()</a> is set to RGB, it
700+
* to 255. If the <a href="#/p5/colorMode">colorMode()</a> is set to RGB, it
701701
* returns the green value in the given range.
702702
*
703703
* @method green
@@ -834,7 +834,7 @@ p5.prototype.green = function(c) {
834834
*
835835
* Hue describes a color's position on the color wheel. By default, `hue()`
836836
* returns a color's HSL hue in the range 0 to 360. If the
837-
* <a href="#/colorMode">colorMode()</a> is set to HSB or HSL, it returns the hue
837+
* <a href="#/p5/colorMode">colorMode()</a> is set to HSB or HSL, it returns the hue
838838
* value in the given mode.
839839
*
840840
* @method hue
@@ -1085,7 +1085,7 @@ p5.prototype.lerpColor = function(c1, c2, amt) {
10851085
* distance to both.
10861086
*
10871087
* The way that colors are interpolated depends on the current
1088-
* <a href="#/colorMode">colorMode()</a>.
1088+
* <a href="#/p5/colorMode">colorMode()</a>.
10891089
*
10901090
* @method paletteLerp
10911091
* @param {[p5.Color, Number][]} colors_stops color stops to interpolate from
@@ -1139,7 +1139,7 @@ p5.prototype.paletteLerp = function(color_stops, amt) {
11391139
* a CSS color string.
11401140
*
11411141
* By default, `lightness()` returns a color's HSL lightness in the range 0
1142-
* to 100. If the <a href="#/colorMode">colorMode()</a> is set to HSL, it
1142+
* to 100. If the <a href="#/p5/colorMode">colorMode()</a> is set to HSL, it
11431143
* returns the lightness value in the given range.
11441144
*
11451145
* @method lightness
@@ -1284,7 +1284,7 @@ p5.prototype.lightness = function(c) {
12841284
* a CSS color string.
12851285
*
12861286
* By default, `red()` returns a color's red value in the range 0
1287-
* to 255. If the <a href="#/colorMode">colorMode()</a> is set to RGB, it
1287+
* to 255. If the <a href="#/p5/colorMode">colorMode()</a> is set to RGB, it
12881288
* returns the red value in the given range.
12891289
*
12901290
* @method red
@@ -1421,7 +1421,7 @@ p5.prototype.red = function(c) {
14211421
*
14221422
* Saturation is scaled differently in HSB and HSL. By default, `saturation()`
14231423
* returns a color's HSL saturation in the range 0 to 100. If the
1424-
* <a href="#/colorMode">colorMode()</a> is set to HSB or HSL, it returns the
1424+
* <a href="#/p5/colorMode">colorMode()</a> is set to HSB or HSL, it returns the
14251425
* saturation value in the given mode.
14261426
*
14271427
* @method saturation

0 commit comments

Comments
 (0)