Older Newer
Sat, 29 Mar 2003 10:20:51 . . . . (Pete)?


Changes by last author:

Added:
= RGB =

== Syntax ==

:int RGB(int r, int g, int b)

== Arguments ==

:r

::Value for the red channel in the range 0 to 255 inclusive.

:g

::Value for the green channel in the range 0 to 255 inclusive.

:b

::Value for the blue channel in the range 0 to 255 inclusive.

== Return ==

:An integer representing the specified color as a 32-bit triple.

== Description ==

:This function can be used to construct color triples to be passed to, for example, the functions that set dialog control colors.

== Example ==

:setCtlColor(2, RGB(255,192,255)); // Set the color of control number 2

== Also see ==

:RGBA, Aval, Bval, Gval, Rval

== Comments ==

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.