There was an error while loading. Please reload this page.
2 parents 190d105 + 793225c commit 77c24aaCopy full SHA for 77c24aa
1 file changed
docs/color_api.md
@@ -168,7 +168,7 @@ Set a specific color channel to a new value. `format` can be either `hsv` or `rg
168
color.setChannel('rgb', 'r', 255);
169
170
// set the hsv hue channel to 180:
171
-color.setChannel('hsv', 'h', 255);
+color.setChannel('hsv', 'h', 180);
172
```
173
174
### `clone`
@@ -242,4 +242,4 @@ Convert an RGB object to an approximated kelvin temperature.
242
243
* `{Object}` RGB values, e.g `{r: 255, g: 0, b: 0}`
244
245
-**Returns**: `{Number}` kelvin temperature
+**Returns**: `{Number}` kelvin temperature
0 commit comments