htmlrgb(
HTMLCOLOR
)

The htmlrgb( function converts text formatted as an HTML color into a Panorama color value (see Colors).


Parameters

This function has one parameter:

htmlcolor – is six hexadecimal digits specifying the color (2 digits for red, 2 for blue, 2 for green).


Description

Converts text formatted as an HTML color (for example FFFFFF for white) into a color.

rgbstr(htmlrgb("FFFFFF")) ☞ 65280,65280,65280
rgbstr(htmlrgb("3333FF")) ☞ 13107,13107,65535

Note: This function is included for compatibility with Panorama 6 and earlier, however, it is no longer necessary. You can now simply use six hex digits wherever a color value is called for.

rgbstr("3333FF") ☞ 13107,13107,65535

See Colors for more information about working with colors in Panorama formulas.

Note: This function is equivalent to:

rgb(radix("hex",thetext[1;2]+"00"),radix("hex",thetext[3;2]+"00"),radix("hex",thetext[5;2]+"00"))

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.