Hi, I’m trying to create additional methods for the class java.awt.Color:
public class Color extends java.awt.Color {
private static final long serialVersionUID = 1L;
public Color(float r, float g, float b) {
super(r, g, b);
}
public static Color blend(Color c1, Color c2, float f) {
return new Color(0F,0F,0F,0F);
}
}
However, when the method blend is called Eclipse says “The method blend(Color, Color, float) is undefined for the type Color”.
Do you have any suggestions what may be the problem?