Esempio n. 1
0
        static unsafe void Demo7(RGBLedMatrix matrix)
        {
            play = true;

            try
            {
                matrix.Fill(0, 0, 0);

                while (play)
                {
                    matrix.SetPixel(matrix.Width / 2, matrix.Height / 2, 255, 0, 0);
                    matrix.DrawCircle(matrix.Width / 2, matrix.Height / 2, 14, 255, 0, 0);
                    matrix.DrawCircle(matrix.Width / 2, matrix.Height / 2, 9, 0, 255, 0);
                    matrix.DrawCircle(matrix.Width / 2, matrix.Height / 2, 6, 0, 0, 255);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }