toHexTriplet method

String toHexTriplet()

Serializes to hex color

Implementation

String toHexTriplet()
{
  StringBuffer sb = new StringBuffer();
  sb.write( _padValue( _getColourValue(red).toRadixString(_BASE_16) ) );
  sb.write( _padValue( _getColourValue(green).toRadixString(_BASE_16) ) );
  sb.write( _padValue( _getColourValue(blue).toRadixString(_BASE_16) ) );
  return sb.toString();
}