procedure AnimateColor(const APropertyName: string; NewValue: TAlphaColor; Duration: Single = 0.2; AType: TAnimationType = TAnimationType.In; AInterpolation: TInterpolationType = TInterpolationType.Linear);
void __fastcall AnimateColor _DEPRECATED_ATTRIBUTE1("Use FMX.Ani.TAnimator instead") (const System::UnicodeString APropertyName, System::Uitypes::TAlphaColor NewValue, float Duration = 2.000000E-01f, TAnimationType AType = (TAnimationType)(0x0), TInterpolationType AInterpolation = (TInterpolationType)(0x0));
Creates a TColorAnimation for this object (self).
Sets the Duration property of this color animation to be the integer provided in the Duration parameter. Duration is the number of seconds to transition from the current color of the property named in the PropertyName property to the color of the StopValue.
Sets the PropertyName property of this color animation to be the string provided in the APropertyName parameter. This string is the name of a property of type TColor associated with the parent to animate. For instance, if the parent is a TRectangle, PropertyName could be set to "Fill.Color" or "Stroke.Color". The value of this property will change from the current value stored (if the StartFromCurrent property is "True") in that property to the value stored in the color animation StopValue property.
Sets the StartFromCurrent property of this color animation to be True. This causes the animation of the color to start with the color value that is currently stored in the Color property associated with the parent. This could be a TRectangle.Fill.Color.
Calls the Start to start the animation.