public RGB getRGB(){
		double H = hue/60;
		double C = value * saturation;
		double X = C * (1 - Math.abs(H%2 - 1));
		double m = value - C;
		
		double r1 = 0, g1 = 0, b1 = 0;
		
		if(H < 1){
			r1 = C;
			g1 = X;
		} else if(H < 2){
			r1 = X;
			g1 = C;
		} else if(H < 3){
			g1 = C;
			b1 = X;
		} else if(H < 4){
			g1 = X;
			b1 = C;
		} else if(H < 5){
			r1 = X;
			b1 = C;
		} else {
			r1 = C;
			b1 = X;
		}
	
		return new RGB(r1+m, g1+m, b1+m);
	}