Exemplo n.º 1
0
        public void Run(ILED3DCanvas canvas, LED3DCanvasFilter filter)
        {
            var rand = new Random();

            while (true)
            {
                if (canvas.GetObjectCount() < 1)
                {
                    var x = rand.Next() % LED.WIDTH;
                    var y = rand.Next() % LED.HEIGHT;
                    canvas.AddObject(new LED3DAtField(x, y, 0, 4, 0)
                                     , filter
                                     );
                }
                canvas.Show();
                LED.Wait(20);
            }
        }
Exemplo n.º 2
0
        public void Run(ILED3DCanvas canvas, LED3DCanvasFilter filter)
        {
            var rand = new Random();

            while (true)
            {
                if (canvas.GetObjectCount() < 2)
                {
                    var x = rand.Next() % LED.WIDTH;
                    var y = rand.Next() % LED.HEIGHT;
                    canvas.AddObject(new LED3DRipple(x, y, new RGB(0xff, 0x00, 0xff), LED.Direction.Front, 6)
                                     , filter
                                     );
                }
                canvas.Show();
                LED.Wait(20);
            }
        }