int rgb(int red, int green, int blue [, int alpha = 255])
Parameters
| Name | Type | Description |
|---|---|---|
| red | int | The red, from 0 to 255. |
| green | int | The green, from 0 to 255. |
| blue | int | The blue, from 0 to 255. |
| alpha | int | The opacity, from 0 to 255.default 255 |
Returns
The colour as a number. If an argument is not an integer, opaque black.
Values outside 0 to 255 are clamped.
Example
local orange = rgb(255, 140, 0)
setSunColor(orange)