public static void drawVerticalLine(int y, int color, int height, int x) {
		if (x < Graphics2D.topX || x >= Graphics2D.bottomX) {
			return;
		}
		if (y < Graphics2D.topY) {
			height -= Graphics2D.topY - y;
			y = Graphics2D.topY;
		}
		if (y + height > Graphics2D.bottomY) {
			height = Graphics2D.bottomY - y;
		}
		int step = x + y * Graphics2D.width;
		for (int offY = 0; offY < height; offY++) {
			Graphics2D.pixels[step + offY * Graphics2D.width] = color;
		}
	}