JXtension - Color.getHexCode()

Purpose:
Give the user the ability to see the six digit hexadecimal representation of a specific Color object.

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.

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: