void setPixel(int x, int y, Color c) {
		c = c.clip();
		int blue = (int) (c.getB() * 255);
		int green = (int) (c.getG() * 255);
		int red = (int) (c.getR() * 255);
		int rgb = blue | (green << 8) | (red << 16);
		image.setRGB(x, y, rgb);
	}