Documentation

Added in v3.08

rgb

Syntax: %rgb(r,g,b)
Related: %colorname, %hexcolor

Convert red, green, blue values (0..255) to a Windows color value. Note that only certain commands and functions accept a Windows color value. You can use this to create a user-defined #STYLE but you cannot use it directly with #CW or #COLOR.

Example

#STYLE MyStyle fore:%rgb(255,0,0)
#TRIGGER {Error} {#CW MyStyle}
Creates a new style called MyStyle that sets the foreground text color to red. This style is used in the trigger to color the word "Error" using the new style.

Add comment

Login or register to post comments