public void renderCircle(int x, int y, int r, int c, boolean light) {
		x -= xOff;
		y -= yOff;

		for (int yy = -r; yy < r; yy++) {
			if ((yy + y) < 0 || (yy + y) >= height)
				continue;
			for (int xx = -r; xx < r; xx++) {
				if ((xx + x) < 0 || (xx + x) >= width)
					continue;
				int d = (xx * xx) + (yy * yy);
				if (d >= r * r)
					continue;

				if (lightingEnabled && light) {
					c = applyLighting(c, xx + x, yy + y);
				}

				pixels[(xx + x) + (yy + y) * width] = c;
			}
		}
	}