new Color(ropt, gopt, bopt, aopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
r |
number |
<optional> |
red (or several other options, including constructing from string or other color object) |
g |
number |
<optional> |
green |
b |
number |
<optional> |
blue |
a |
number |
<optional> |
optional alpha value (assumed to be 1) |
- Source:
Methods
applyLimits()
Make sure that all fields of the color respect their limit (0-255, 0-1)
- Source:
mult()
Multiply this with another color
- Source:
randomVariance(destopt)
JHS adding a dest field to avoid new5
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
dest |
Object |
<optional> |
- Source: