public void addLightSource(int x, int y, int r, int br) {
		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;

				int i = (xx + x) + (yy + y) * width;
				pixelLighting[i] += br - d * br / (r * r);
				if (pixelLighting[i] >= 255) {
					pixelLighting[i] = 255;
				}
			}
		}
	}