Example #1
0
        public CopyAnimation(
            AnimationSurface originalAnimationSurface,
            IEnumerable<Vector2> offsetVectors)
        {
            Contract.Requires(originalAnimationSurface != null);
            Contract.Requires(offsetVectors != null);

            _animationSurface = originalAnimationSurface;
            _offsetVectors = offsetVectors;
        }
Example #2
0
        public ExtendTimeAnimation(
            AnimationSurface animationSurface, float frontSpanTime,
            float backSpanTime)
        {
            Contract.Requires(animationSurface != null);

            _animationSurface = animationSurface;
            _frontSpanTime = frontSpanTime;
            _backSpanTime = backSpanTime;
        }
Example #3
0
        public CustomCoordAnimation(
            AnimationSurface animationSurface,
            Func<Point2, Size, Point2> coordinateTransformer)
        {
            Contract.Requires(animationSurface != null);
            Contract.Requires(coordinateTransformer != null);

            _animationSurface = animationSurface;
            _coordinateTransformer = coordinateTransformer;
        }
        public EndlessRepeatAnimation(AnimationSurface animationSurface)
        {
            Contract.Requires(animationSurface != null);

            _animationSurface = animationSurface;
        }
Example #5
0
 public ExtendTimeAnimation(
     AnimationSurface animationSurface, float backSpanTime)
     : this(animationSurface, 0, backSpanTime)
 {
 }