The instance.Color
function contains convenience methods and members
for Rac.Color
objects setup with the owning Rac
instance.
- Source:
Members
Methods
fromRgba(r, g, b, aopt) → {Rac.Color}
#
| source:
style/instance.Color.js, line 17
Returns a new Color
with each channel received in the [0,255] range.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
r |
number
|
The red channel value, in the [0,255] range |
||
g |
number
|
The green channel value, in the [0,255] range |
||
b |
number
|
The blue channel value, in the [0,255] range |
||
a |
number
|
<optional> |
255 |
The alpha channel value, in the [0,255] range |