public double getHue(){
		double M = getMax();
		double C = getChroma();
		double H = 0;
		if(C==0)return 0.0;
		if(M==red){H = ((green-blue)/C)%6;};
		if(M==blue){H = ((blue-red)/C)+2;};
		if(M==green){H = ((red-green)/C)+4;};
		return 60 * H;
	}