<static> getRandomColor(min, max, alpha) → {number}
Returns a random color value between black and white
Set the min value to start each channel from the given offset.
Set the max value to restrict the maximum color used per channel.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
min | number | <optional> | 0 | The lowest value to use for the color. |
max | number | <optional> | 255 | The highest value to use for the color. |
alpha | number | <optional> | 255 | The alpha value of the returning color (default 255 = fully opaque). |
Returns
number -
32-bit color value with alpha.
- Source code: utils/Color.js (Line 834)
Please login to continue.