ph_htmlcolor PowerHome formula function
Description
Returns the HTML hexadecimal equivalent of a combined RGB color.
Syntax
ph_htmlcolor ( n )
Argument Description
n A long value representing a color. This color value is determined by combining Red, Green, and Blue values ranging from 0 to 255 using the following formula: Red + (Green * 256) + (Blue * 65536).
Return value
String. Returns the HTML hexadecimal equivalent of the combined RGB color in the form of #RRGGBB
Usage
Use this function to quickly convert RGB color values into their HTML equivalent.
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_htmlcolor(255) - Returns a value of "#FF0000" which is the HTML color value for red