Example #1
0
        /// <summary>
        /// Call the specified handler as KeyFrame.
        /// </summary>
        /// <param name="handler">Handler.</param>
        public Tween Call(KeyFrameHandler handler)
        {
            KeyFrame keyFrame = new KeyFrame(0, this.easing, handler);

            this.keyFrames.Add(keyFrame);
            return(this);
        }
Example #2
0
 public KeyFrame(float duration, EasingFunction easing, KeyFrameHandler handler = null)
 {
     this.duration  = duration;
     this.startedAt = 0;
     this.easing    = easing;
     this.handler   = handler;
     iterations     = new List <Iteration>();
 }