Beispiel #1
0
 public ColorZone(Devices.DeviceKeys[] zone_keys, Color zone_color, string zone_name = "New Zone")
 {
     name          = zone_name;
     keysequence   = new KeySequence(zone_keys);
     color         = zone_color;
     effect        = LayerEffects.None;
     effect_config = new LayerEffectConfig();
 }
Beispiel #2
0
 public ColorZone(ColorZone otherZone)
 {
     name          = otherZone.name;
     keysequence   = new KeySequence(otherZone.keysequence);
     color         = otherZone.color;
     effect        = otherZone.effect;
     effect_config = new LayerEffectConfig(otherZone.effect_config);
 }
Beispiel #3
0
 public ColorZone(Devices.DeviceKeys[] zone_keys, LayerEffects zone_effect, string zone_name = "New Zone")
 {
     name          = zone_name;
     keysequence   = new KeySequence(zone_keys);
     color         = Color.Black;
     effect        = zone_effect;
     effect_config = new LayerEffectConfig();
     GenerateRandomColor();
 }
Beispiel #4
0
 public ColorZone(string zone_name = "New Zone")
 {
     name          = zone_name;
     keysequence   = new KeySequence();
     color         = Color.Black;
     effect        = LayerEffects.None;
     effect_config = new LayerEffectConfig();
     GenerateRandomColor();
 }
 public LayerEffectConfig(LayerEffectConfig otherConfig)
 {
     primary           = otherConfig.primary;
     secondary         = otherConfig.secondary;
     speed             = otherConfig.speed;
     angle             = otherConfig.angle;
     animation_type    = otherConfig.animation_type;
     animation_reverse = otherConfig.animation_reverse;
     brush             = otherConfig.brush;
 }