Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | num.rgb SEARCH    

  Functions
num.abs
num.blue
num.char
num.colorToHex
num.compute
num.cos
num.fromHex
num.getAngle
num.getDistance
num.green
num.hexToColor
num.isInRect
num.not
num.random
num.red
num.rgb
num.sin
num.toHex

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
num.rgb

Language: MioScript
Product: MioFactory


Syntax

num.rgb(Red, green, blue)


Parameters

INTRedLevel of the red channel (0-255).
INTgreenLevel of the green channel (0-255).
INTblueLevel of the blue channel (0-255).


Return value

Color



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)