public static String fromColour(Color colour){
  if (colour == null) {
    return null;
  }
  String colourString=toHex(colour.getRed(),colour.getGreen(),colour.getBlue());
  return colourString;
}

public static String fromColour ( Color colour ) { if ( colour == null ) { return null ; } String colourString = toHex ( colour . getRed ( ) , colour . getGreen ( ) , colour . getBlue ( ) ) ; return colourString ; }
create a # rrggbb string from colour . < p > returns null if colour is null .
