Skip to content

Commit 158a8bc

Browse files
added documentation that's more similar to that of background()
1 parent 2e2f095 commit 158a8bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/color/creating_reading.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,8 +960,8 @@ p5.prototype.hue = function(c) {
960960
* <a href="#/colorMode">colorMode()</a>.
961961
*
962962
* @method lerpColor
963-
* @param {p5.Color|Number[]} c1 interpolate from this color.
964-
* @param {p5.Color|Number[]} c2 interpolate to this color.
963+
* @param {p5.Color} c1 interpolate from this color (any value created by the color() function).
964+
* @param {p5.Color} c2 interpolate to this color (any value created by the color() function).
965965
* @param {Number} amt number between 0 and 1.
966966
* @return {p5.Color} interpolated color.
967967
*

0 commit comments

Comments
 (0)