yangyin
2025-01-13 36616eb44dc36a4e6e3e7a7540310cb850218ea9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#region Imports
 
using System.Drawing;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Animate.Metro
{
    #region ColorAnimateAnimate
 
    public class ColorAnimate : Animate<Color>
    {
        public override Color Value => Color.FromArgb
        (
            (byte)Interpolation.ValueAt(InitialValue.A, EndValue.A, Alpha, EasingType),
            (byte)Interpolation.ValueAt(InitialValue.R, EndValue.R, Alpha, EasingType),
            (byte)Interpolation.ValueAt(InitialValue.G, EndValue.G, Alpha, EasingType),
            (byte)Interpolation.ValueAt(InitialValue.B, EndValue.B, Alpha, EasingType)
        );
    }
 
    #endregion
}