mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
Update js-api.html.md.erb (#393)
This commit is contained in:
parent
06c5a72833
commit
b99d93d103
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user