Example #1
0
 private static void BuildModifiers(Blinker blinker, out decimal redModifier, out decimal greenModifier, out decimal blueModifier)
 {
     Decimal.TryParse(Convert.ToString(blinker.GetBlinkColor().R), out redModifier);
     redModifier = redModifier / 255;
     Decimal.TryParse(Convert.ToString(blinker.GetBlinkColor().G), out greenModifier);
     greenModifier = greenModifier / 255;
     Decimal.TryParse(Convert.ToString(blinker.GetBlinkColor().B), out blueModifier);
     blueModifier = blueModifier / 255;
 }
Example #2
0
 public void TurnOn(Blinker blinker, AbstractBlinkstickHid hid)
 {
     string color = Operations.ColorToHexString(blinker.GetBlinkColor());
     changeColor(hid, color);
 }