Esempio n. 1
0
 public static LedColor ChangeSaturation(LedColor color, double saturation)
 {
     var(h, _, v) = color.ToHsv();
     return(FromHsv(h, saturation, v));
 }
Esempio n. 2
0
 public static LedColor ChangeValue(LedColor color, double value)
 {
     var(h, s, _) = color.ToHsv();
     return(FromHsv(h, s, value));
 }
Esempio n. 3
0
 public static LedColor ChangeHue(LedColor color, double hue)
 {
     var(_, s, v) = color.ToHsv();
     return(FromHsv(hue, s, v));
 }