@Override
	public void paint(Graphics g) {
		Graphics graph = io.getGraphics();
		for (int x = 0; x < array.length; x++)
			for (int y = 0; y < array[x].length; y++) {
				if (array[x][y] == 0.0)
					continue;
				// graph.setColor(array[x][y].getColor());
				Color c = moduleColor[x][y];
				if (c == null) {
					int n = (int) (array[x][y] * 50);
					if (n > 255)
						n = 255;
					if (n < 0)
						n = 0;
					c = new Color(n, n, n);
				}
				graph.setColor(c);
				graph.fillRect(x * 1, y * 1, 2, 2);
			}
		g.drawImage(io, 0, 0, io.getWidth() * 2, io.getHeight() * 2, null);
	}