yangyin
2025-03-27 b0de14c2670b9ff0079dacfb4b7457b438368f11
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
}