Example #1
0
        protected override void Update(IRenderEffects effects, float percent)
        {
            float r = _startColor.R + (EndColor.R - _startColor.R) * percent;
            float g = _startColor.G + (EndColor.G - _startColor.G) * percent;
            float b = _startColor.B + (EndColor.B - _startColor.B) * percent;
            float a = _startColor.A + (EndColor.A - _startColor.A) * percent;

            effects.BlendColor = new Color((byte)r, (byte)g, (byte)b, (byte)a);
        }
 protected virtual void Update(IRenderEffects effects, float percent)
 {
 }
 protected virtual void Begin(IRenderEffects effects)
 {
 }
Example #4
0
 protected override void Update(IRenderEffects effects, float percent)
 {
     effects.Opacity = _start + (_end - _start) * percent;
 }
Example #5
0
 protected override void Begin(IRenderEffects effects)
 {
     _start = effects.Opacity;
 }
Example #6
0
 protected override void Begin(IRenderEffects effects)
 {
     if (StartColor == null)
         StartColor = effects.BlendColor;
     _startColor = StartColor.Value;
 }
Example #7
0
 protected override void Update(IRenderEffects effects, float percent)
 {
     effects.Scale = _start + (Scale - _start) * percent;
 }
Example #8
0
 protected override void Begin(IRenderEffects effects)
 {
     _start = effects.Scale;
 }