Added in v3.08


Syntax: %hexcolor(n)
Related: %colorname, %rgb

Convert a Windows color value to a RGB hex string. The resulting string can be used in MXP set a color. A Windows color string has the format #BBGGRR (reverse of what is normally used in HTML)


#SHOW %colorname(gold)
#SHOW %hexcolor( %colorname(gold))

The first line displays the Windows color value associated with the "gold" name, which is 55295. The second line converts this to a proper HTML hex string of #FFD700

Add comment

Login or register to post comments