public RotatingColor() { timer = new Timer(); timer.Tick += new EventHandler(this.Tick); timer.Interval = 50; hslcolor = new HSLColor(0.0, 240.0, 120.0); }
private static double GetTemp2(HSLColor hslColor) { double temp2; if (hslColor.luminosity < 0.5) //<=?? temp2 = hslColor.luminosity * (1.0 + hslColor.saturation); else temp2 = hslColor.luminosity + hslColor.saturation - (hslColor.luminosity * hslColor.saturation); return temp2; }