JXtension - Color.toString()

Purpose:
Give the user the ability to see the six digit hexadecimal representation of a specific Color object.  NOTE:  This is currently an alias for Color.getHexCode().

Returns:
Returns a string which begins with a pound sign (#) followed by three pairs of hexadecimal digits.  The first pair of digits represent the amount of red in the color.  The second pair of digits represent the amount of green in the color.  The third pair of digits represent the amount of blue in the color.  NOTE:  If concatenating with a string, this function doesn't need to be used because it will be automatically invoked.

Example #1:
The following will instantiate a color using three decimal digits.  After that, the hexadecimal code will be shown:

 

Example #2:
The following will instantiate a color using three hexadecimal digits.  After that, the six digit hexadecimal code will be shown:

 

See also: