Skip to content

Commit 418c1a7

Browse files
authored
Merge pull request #1870 from joecridge/color-docs-fix
Documentation: gray argument in color() must be numeric, fixes #1869
2 parents 6919c0e + f9ccd38 commit 418c1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/color/creating_reading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ p5.prototype.brightness = function(c) {
137137
* Colors are stored as Numbers or Arrays.
138138
*
139139
* @method color
140-
* @param {Number|String} gray number specifying value between white
140+
* @param {Number} gray number specifying value between white
141141
* and black.
142142
* @param {Number} [alpha] alpha value relative to current color range
143143
* (default is 0-255)

0 commit comments

Comments
 (0)