Update js-api.html.md.erb (#393)

This commit is contained in:
alibalouchi 2019-10-21 23:46:55 +03:30 committed by Natalie Weizenbaum
parent 06c5a72833
commit b99d93d103

View File

@ -1039,22 +1039,22 @@ color.getA(); // 1
color.getA(); // 0
```
#### `string.setR(red)`
#### `color.setR(red)`
Sets the red channel of the color. The value must be an integer between 0 and
255 (inclusive).
#### `string.setG(green)`
#### `color.setG(green)`
Sets the green channel of the color. The value must be an integer between 0 and
255 (inclusive).
#### `string.setB(blue)`
#### `color.setB(blue)`
Sets the blue channel of the color. The value must be an integer between 0 and
255 (inclusive).
#### `string.setA(alpha)`
#### `color.setA(alpha)`
Sets the alpha channel of the color. The value must be a number between 0 and 1
(inclusive).