Example #1
0
 public static void NextColor(out HslColor color, ColorRange range)
 {
     var maxH = range.Max.H >= range.Min.H
         ? range.Max.H
         : range.Max.H + 360;
     color = new HslColor(NextSingle(range.Min.H, maxH),
                          NextSingle(range.Min.S, range.Max.S),
                          NextSingle(range.Min.L, range.Max.L));
 }