Syntax
| num.rgb(Red, green, blue) |
Parameters
| INT | Red | Level of the red channel (0-255).
| | INT | green | Level of the green channel (0-255).
| | INT | blue | Level of the blue channel (0-255). |
Return value
Description
Returns an RGB value for the specified color channels levels.
The RGB value is used in most of the graphics functions - for more info: draw...
------ num.rgb(0, 0, 0)
------ num.rgb(255, 0, 0)
------ num.rgb(0, 255, 0)
------ num.rgb(0, 0, 255)
------ num.rgb(0, 255, 255)
------ num.rgb(255, 255, 255)
|
MioScript Sample Code
&color = num.rgb(255,0,0) // Red
draw.main.rect(0,0,100,100, &color) |
|