public Color getPixelColorRelPos(double x, double y){ // 0 < x,y < 1
		int imgX = (int)(x * width);
		int imgY = (int)(y * height);
		if(imgX < 0) imgX = 0;
		if(imgX >= width) imgX = width - 1;
		if(imgY < 0) imgY = 0;
		if(imgY >= height) imgY = height -1;
		return getPixelColor(imgX, imgY);
	}