Exemplo n.º 1
0
		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();
			}
		}
Exemplo n.º 2
0
 private Color GetCharacterColor(BwCharacterRendererPixelMap pixelMap)
 {
     return Colors.Red;
 }