Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void transitionConst(Corale.Colore.Core.Color col1, Corale.Colore.Core.Color col2, bool forward)
- {
- int i = 1;
- while (state == 1)
- {
- if (i == 1)
- {
- for (uint c = 0; c < Corale.Colore.Razer.Keyboard.Constants.MaxColumns; c++)
- {
- for (uint r = 0; r < Corale.Colore.Razer.Keyboard.Constants.MaxRows; r++)
- {
- if (state != 1) { break; }
- var row = (forward) ? r : Corale.Colore.Razer.Keyboard.Constants.MaxRows - r - 1;
- var colu = (forward) ? c : Corale.Colore.Razer.Keyboard.Constants.MaxColumns - c - 1;
- try {
- Keyboard.Instance[row, colu] = Corale.Colore.Core.Color.FromSystemColor(col1);
- }
- catch (Exception ex)
- {
- Debug.WriteLine(ex.Message);
- }
- }
- Thread.Sleep(40);
- }
- i = 2;
- }
- else if (i == 2)
- {
- for (uint c = 0; c < Corale.Colore.Razer.Keyboard.Constants.MaxColumns; c++)
- {
- for (uint r = 0; r < Corale.Colore.Razer.Keyboard.Constants.MaxRows; r++)
- {
- if (state != 1) { break; }
- var row = (forward) ? r : Corale.Colore.Razer.Keyboard.Constants.MaxRows - r - 1;
- var colu = (forward) ? c : Corale.Colore.Razer.Keyboard.Constants.MaxColumns - c - 1;
- try
- {
- Keyboard.Instance[row, colu] = Corale.Colore.Core.Color.FromSystemColor(col2);
- }
- catch (Exception ex)
- {
- Debug.WriteLine(ex.Message);
- }
- }
- Thread.Sleep(40);
- }
- i = 1;
- }
- }
- if (RzWeatherCycle.IsAlive)
- {
- RzWeatherCycle.Abort();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement