Skip to content

Commit

Permalink
Merge pull request #7241 from M0nica/patch-1
Browse files Browse the repository at this point in the history
fix: broken links in lerpColor()
  • Loading branch information
Qianqianye authored Sep 10, 2024
2 parents 67f7be6 + 3612825 commit 4a2f704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/color/creating_reading.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,11 +953,11 @@ p5.prototype.hue = function(c) {
* values. 0 is equal to the first color, 0.1 is very near the first color,
* 0.5 is halfway between the two colors, and so on. Negative numbers are set
* to 0. Numbers greater than 1 are set to 1. This differs from the behavior of
* <a href="#/lerp">lerp</a>. It's necessary because numbers outside of the
* <a href="#/p5/lerp">lerp</a>. It's necessary because numbers outside of the
* interval [0, 1] will produce strange and unexpected colors.
*
* The way that colors are interpolated depends on the current
* <a href="#/colorMode">colorMode()</a>.
* <a href="#/p5/colorMode">colorMode()</a>.
*
* @method lerpColor
* @param {p5.Color} c1 interpolate from this color.
Expand Down

0 comments on commit 4a2f704

Please sign in to comment.