Beispiel #1
0
        public void SetKeys(IEnumerable<GradientHSLColorKey> keys)
        {
            var gradientHSLKeys = keys as IList<GradientHSLColorKey> ?? keys.ToList();

            curve = new ResponseCurveHSL(
                gradientHSLKeys.Select(key => key.time),
                gradientHSLKeys.Select(key => key.color));
        }
Beispiel #2
0
 /// <summary>
 /// Constrcust a new HSL gradient.
 /// </summary>
 public GradientHSL()
 {
     curve = new ResponseCurveHSL(
         new List<float> {0, 1},
         new List<ColorHSL> {ColorHSL.White, ColorHSL.Black});
 }