ClassAnimationValueColorCalculator
Provides color animation calculations with smooth ARGB component interpolation.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class AnimationValueColorCalculator : AnimationValueCalculator
Inheritance: objectAnimationValueCalculatorAnimationValueColorCalculator
Inherited Members
Constructors
AnimationValueColorCalculator()
Declaration
public AnimationValueColorCalculator()
Properties
AssociatedType
Gets the type associated with this calculator.
Methods
CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)
Calculates the animated color value by interpolating ARGB components.
Declaration
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters
startValue
The starting color value.
endValue
The ending color value.
currValue
The current color value.
step
The color animation step.
currFrameNum
The current frame number.
totalFrameNum
The total number of frames.
calc
The easing calculator.
Returns
The interpolated color for the current frame.
Overrides
CalculateAnimationEndValue(object, object, int)
Calculates the end color value based on start value and animation step.
Declaration
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)
Parameters
animationStartValue
The starting color.
animationStep
The color animation step.
numFrames
The number of animation frames.
Returns
The calculated end color value.
Overrides
CalculateAnimationStep(object, object, int)
Calculates the animation step needed to transition between two colors.
Declaration
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters
animationStartValue
The starting color.
animationEndValue
The ending color.
numFrames
The number of animation frames.
Returns
The calculated color animation step.
Overrides
CalculateInversedStep(object)
Calculates the inverse of a color animation step.