Syntax: %colorname(string)

Converts the HTML color name in string to an RGB color value. Actually returns a value in #00BBGGRR format since that is what is required by the Windows API. The returned color is compatible with routines that can use any Windows color such as %roomcol. If the color does not exist, the clNone color is returned which has a value of 536870911.

Instead of a name as shown below, you can also specify s in the format #RRGGBB and it will be converted to the BGR color used by Windows.


#SHOW %colorname(red)
returns 255
#SHOW %colorname(#FF0000)
returns 255
#CALL %roomcol(1,%colorname(#FF0000))
colors room number 1 in red.

Supported colors are:


Add comment

Login or register to post comments