Class ColorBlendAnimator
public class ColorBlendAnimator : ProgressAnimator, ISkiaAnimator, IDisposable
- Inheritance
-
ColorBlendAnimator
- Implements
- Inherited Members
- Extension Methods
Constructors
ColorBlendAnimator(IDrawnBase)
public ColorBlendAnimator(IDrawnBase parent)
Parameters
parentIDrawnBase
Properties
Color
public Color Color { get; protected set; }
Property Value
Color1
public Color Color1 { get; set; }
Property Value
Color2
public Color Color2 { get; set; }
Property Value
OnColorChanged
public Action<Color> OnColorChanged { get; set; }
Property Value
Methods
AnimateAsync(Action<Color>, Color, Color, double, Easing, CancellationTokenSource)
public Task AnimateAsync(Action<Color> callback, Color start, Color end, double msLength = 250, Easing easing = null, CancellationTokenSource cancel = null)
Parameters
callbackAction<Color>startColorendColormsLengthdoubleeasingEasingcancelCancellationTokenSource
Returns
GetColor(Color, Color, float)
public static Color GetColor(Color start, Color end, float progress)
Parameters
Returns
OnProgressChanged(double)
protected override void OnProgressChanged(double progress)
Parameters
progressdouble