private static void RunSelfTest(IPixelRenderer renderer) { Log.InfoFormat("Running self-test on {0}: {1} pixels", renderer, renderer.PixelCount); Log.InfoFormat("Red"); for (int i = 0; i < renderer.PixelCount; i++) { renderer.SetPixels(n => n == i ? 0xff0000 : 0x000000); renderer.Show(); Thread.Sleep(50); } Log.InfoFormat("Green"); for (int i = 0; i < renderer.PixelCount; i++) { renderer.SetPixels(n => n == i ? 0x00ff00 : 0x000000); renderer.Show(); Thread.Sleep(50); } Log.InfoFormat("Blue"); for (int i = 0; i < renderer.PixelCount; i++) { renderer.SetPixels(n => n == i ? 0x0000ff : 0x000000); renderer.Show(); Thread.Sleep(50); } }
public void Show() { _renderer.Show(); }