htmlrgbstr(
COLOR
)

The htmlrgbstr( function converts a color to text formatted as an HTML color.


Parameters

This function has one parameter:

color – is the color you want to convert to text. This must either be a binary value created with the rgb(, hsb(, or other color generation functions, or must be an HTML color specification like "FF0000" (red) or "0000FF" (blue). See Colors for more information.


Description

Converts a color to text formatted as an HTML color.

htmlrgbstr(rgb(48000,24000,65000)) ☞ BB5DFD
htmlrgbstr(hsb(0,20000,10000)) ☞ 271B1B

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

Note: This function is equivalent to:

radixstr("hex",red(thecolor))[-4,-3]+radixstr("hex",green(thecolor))[-4,-3]+radixstr("hex",blue(thecolor))[-4,-3]

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.