private int[] renderGenerationToPixelArray(Generation currentGeneration) {
		int scaledHeight = getScaledHeight(currentGeneration);
		int scaledWidth = getScaledWidth(currentGeneration);
		int[] pixels = new int[scaledHeight * scaledWidth];

		for (int row = 0; row < scaledHeight; row++) {
			for (int col = 0; col < scaledWidth; col++) {
				int index = (row * scaledWidth) + col;

				if (currentGeneration.isCellAlive(col / SCALE_FACTOR, row / SCALE_FACTOR))
					pixels[index] = 0xffffffff;
				else
					pixels[index] = 0xff000000;
			}
		}

		return pixels;
	}