Chromatics.Chromatics.transition C# (CSharp) Метод

transition() приватный Метод

private transition ( Corale col, bool forward ) : void
col Corale
forward bool
Результат void
        private void transition(Corale.Colore.Core.Color col, bool forward)
        {
            lock (_transition)
            {
                for (uint c = 0; c < Corale.Colore.Razer.Keyboard.Constants.MaxColumns; c++)
                {
                    for (uint r = 0; r < Corale.Colore.Razer.Keyboard.Constants.MaxRows; r++)
                    {
                        var row = (forward) ? r : Corale.Colore.Razer.Keyboard.Constants.MaxRows - r - 1;
                        var colu = (forward) ? c : Corale.Colore.Razer.Keyboard.Constants.MaxColumns - c - 1;
                        Keyboard.Instance[row, colu] = Corale.Colore.Core.Color.FromSystemColor(col);
                    }
                    Thread.Sleep(15);
                }
            }
        }
Chromatics