public void SetPixel(int x, int y, CanvasColor color) { // Return if outside of Matrix if (OutsideCanvas(x, y)) { return; } this.pixelMap[x, y] = color; }
public void Fill(CanvasColor color) { for (var x = 0; x < Width; x++) { for (var y = 0; y < Height; y++) { SetPixel(x, y, color); } } }