Ejemplo n.º 1
0
 public Animation(IPoint start, int ticks, float fromR, float toR, float fromD, float toD, Color fromColor, int toAlpha, AnimationTypes type) : this()
 {
     this.pos      = (PointF)start;
     this.duration = ticks;
     this.R        = new Animatable(fromR, toR, ticks, type);
     this.D        = new Animatable(fromD, toD, ticks, type);
     this.color    = new AnimatableColor(fromColor, Color.FromArgb(toAlpha, fromColor), duration, type);
 }
Ejemplo n.º 2
0
 public Animation(IPoint start, int ticks, float fromR, float toR, float fromD, float toD, Color fromColor, Color toColor) : this()
 {
     this.pos      = (PointF)start;
     this.duration = ticks;
     this.R        = new Animatable(fromR, toR, ticks);
     this.D        = new Animatable(fromD, toD, ticks);
     this.color    = new AnimatableColor(fromColor, toColor, duration);
 }