Ejemplo n.º 1
0
        public void Start(double start, double end, InterperlatorDelegate interpolator, float duration)
        {
            this.interpolator = interpolator;
            this.duration     = Math.Max(0f, duration);

            startValue = start;
            endValue   = end;

            Finished = false;
            Value    = startValue;

            difference = endValue - startValue;
            progress   = 0d;
            stepSize   = 1d / this.duration;
        }
Ejemplo n.º 2
0
 public Animator()
 {
     interpolator = Interpolations.Linear;
     Finished     = true;
 }