private Color GetCharacterColor(BwCharacterRendererPixelMap pixelMap) { switch (_currentMode) { case RenderMode.YellowOnBlue: return Colors.Yellow; case RenderMode.BlackOnStaticRainbow: return Colors.Black; case RenderMode.BlackOnMovingRainbow: return Colors.Black; case RenderMode.StaticRainbowOnBlack: // Let the rainbow colors be "pinned" to the display. return _rainbowColors[pixelMap.DisplayPixelX, pixelMap.DisplayPixelY]; case RenderMode.MovingRainbowOnBlack: // Let the rainbow colors move with the characters ("restarting" on each character). return _rainbowColors[pixelMap.CharPixelX, pixelMap.CharPixelY]; default: throw new ArgumentOutOfRangeException(); } }
private Color GetCharacterColor(BwCharacterRendererPixelMap pixelMap) { return Colors.Red; }