public static final String YELLOW = "#FFFFAA"; // 255, 255, 170
public static final String GREEN = "#AAFFAA"; // 170, 255, 170
public static final String GRAY = "#CCCCCC"; // 204, 204, 204
public static final String RED = "#FFAAAA"; // 255, 170, 170
public static final String ORANGE = "#FFC800"; // 255, 200, 0
<BUG>public static String toRGB(Color color) {
String rgb = "#";
rgb += formatAsHex(color.getRed());
rgb += formatAsHex(color.getGreen());

rgb += formatAsHex(color.getBlue());

return rgb;
}</BUG>
private static String formatAsHex(int value) {

public static final String YELLOW = "#FFFFAA"; // 255, 255, 170
public static final String GREEN = "#AAFFAA"; // 170, 255, 170
public static final String GRAY = "#CCCCCC"; // 204, 204, 204
public static final String RED = "#FFAAAA"; // 255, 170, 170
public static final String ORANGE = "#FFC800"; // 255, 200, 0
public static String toRGB(Color color) {
return new StringBuilder("#").append(formatAsHex(color.getRed()))
.append(formatAsHex(color.getGreen()))
.append(formatAsHex(color.getBlue()))
.toString();
}
private static String formatAsHex(int value) {
