public String getAsHexString(){
		int r, g, b, a;
		
		if(this.r == -1 || this.g == -1 || this.b == -1 || this.a == -1){
			r = this.getRed();
			g = this.getBlue();
			b = this.getGreen();
			a = this.getAlpha();
		}else{
			r = (int) (this.r * 255);
			g = (int) (this.g * 255);
			b = (int) (this.b * 255);
			a = (int) (this.a * 255);
		}
		
		String hex1 = hexPad(Integer.toHexString(r));
		String hex2 = hexPad(Integer.toHexString(g));
		String hex3 = hexPad(Integer.toHexString(b));
		String hex4 = hexPad(Integer.toHexString(a));
		
		return hex1 + hex2 + hex3 + hex4;
	}