public void adjustColors(int redOff, int greenOff, int blueOff) {
		for (int i = 0; i < pixels.length; i++) {
			int color = pixels[i];
			if (color != 0) {
				int red = color >> 16 & 0xff;
				red += redOff;
				if (red < 1) {
					red = 1;
				} else if (red > 255) {
					red = 255;
				}
				int green = color >> 8 & 0xff;
				green += greenOff;
				if (green < 1) {
					green = 1;
				} else if (green > 255) {
					green = 255;
				}
				int blue = color & 0xff;
				blue += blueOff;
				if (blue < 1) {
					blue = 1;
				} else if (blue > 255) {
					blue = 255;
				}
				pixels[i] = (red << 16) + (green << 8) + blue;
			}
		}
	}