Skip to content

Commit 77c24aa

Browse files
authored
Merge pull request #264 from natsie/patch-1
Update color_api.md
2 parents 190d105 + 793225c commit 77c24aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/color_api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Set a specific color channel to a new value. `format` can be either `hsv` or `rg
168168
color.setChannel('rgb', 'r', 255);
169169

170170
// set the hsv hue channel to 180:
171-
color.setChannel('hsv', 'h', 255);
171+
color.setChannel('hsv', 'h', 180);
172172
```
173173

174174
### `clone`
@@ -242,4 +242,4 @@ Convert an RGB object to an approximated kelvin temperature.
242242

243243
* `{Object}` RGB values, e.g `{r: 255, g: 0, b: 0}`
244244

245-
**Returns**: `{Number}` kelvin temperature
245+
**Returns**: `{Number}` kelvin temperature

0 commit comments

Comments
 (0)