RGB(red, green, blue)
Description
RGB returns a whole number representing an RGB color value. Red, Green and Blue are numbers from 0-255 representing their respective components in the color.
Example
REM RGB Example
'RGB returns RGB Color
addObject "PictureBox","PB",50,50,20,20
REM Turn color to red
PB.backcolor=rgb(255,0,0)
REM Turn color to grey
PB.backcolor=RGB(127,127,127)
REM Turn color to white
PB.backcolor=RGB(255,255,255)
Output
(a red rectangle, then a gray rectangle, then a white rectangle)
Related Items