Skip to content

Commit a4254a0

Browse files
committed
Fix colorMode
1 parent e36d481 commit a4254a0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/parameterData.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@
211211
"Number",
212212
"Number",
213213
"Number?"
214-
]
214+
],
215+
[]
215216
]
216217
},
217218
"fill": {

src/color/setting.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ function setting(p5, fn){
821821
* @param {RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH} mode either RGB, HSB, HSL,
822822
* or one of the extended modes described above.
823823
* @param {Number} [max] range for all values.
824-
* @chainable
824+
* @return {RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH} The current color mode.
825825
*
826826
* @example
827827
* <div>
@@ -1161,7 +1161,6 @@ function setting(p5, fn){
11611161
* </code>
11621162
* </div>
11631163
*/
1164-
11651164
/**
11661165
* @method colorMode
11671166
* @param {RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH} mode
@@ -1173,7 +1172,11 @@ function setting(p5, fn){
11731172
* depending on the current color mode.
11741173
* @param {Number} [maxA] range for the alpha.
11751174
*
1176-
* @return {String} The current color mode.
1175+
* @return {RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH} The current color mode.
1176+
*/
1177+
/**
1178+
* @method colorMode
1179+
* @return {RGB|HSB|HSL|RGBHDR|HWB|LAB|LCH|OKLAB|OKLCH} The current color mode.
11771180
*/
11781181
fn.colorMode = function(mode, max1, max2, max3, maxA) {
11791182
// p5._validateParameters('colorMode', arguments);

0 commit comments

Comments
 (0)