/// <summary> /// Setup Moving Color Musical Notes /// </summary> /// <param name="paintOffSet">amount of Paint OffSet</param> /// <param name="gridLines">if Gridlines</param> public void setMapColor(int paintOffSet) { ColorRGB pixelColor = null; for (int i = 0; i < _matrixWidth; i++) { for (int j = 0; j < _matrixHeight; j++) { pixelColor = _colors[_colorMatrix[i, j]]; int startX = (i * _paintArea); int endX = ((i + 1) * _paintArea - 1); // int startY = (j * _paintArea); int endY = ((j + 1) * _paintArea - 1); // if (i > 0) { startX = startX - (paintOffSet); } if (j > 0) { startY = startY - (paintOffSet); } // for (int x = startX; x <= endX; x++) { for (int y = startY; y <= endY; y++) { ColorRGB mixed = new ColorRGB(pixelColor); mixed.mixColor(_scenePixelMatrix[x, y]); _scenePixelMatrix[x, y] = mixed; } } } } }