Table of Contents

Class ColorBlendAnimator

Namespace
DrawnUi.Draw
Assembly
DrawnUi.Maui.dll
public class ColorBlendAnimator : ProgressAnimator, ISkiaAnimator, IDisposable
Inheritance
ColorBlendAnimator
Implements
Inherited Members
Extension Methods

Constructors

ColorBlendAnimator(IDrawnBase)

public ColorBlendAnimator(IDrawnBase parent)

Parameters

parent IDrawnBase

Properties

Color

public Color Color { get; protected set; }

Property Value

Color

Color1

public Color Color1 { get; set; }

Property Value

Color

Color2

public Color Color2 { get; set; }

Property Value

Color

OnColorChanged

public Action<Color> OnColorChanged { get; set; }

Property Value

Action<Color>

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

callback Action<Color>
start Color
end Color
msLength double
easing Easing
cancel CancellationTokenSource

Returns

Task

GetColor(Color, Color, float)

public static Color GetColor(Color start, Color end, float progress)

Parameters

start Color
end Color
progress float

Returns

Color

OnProgressChanged(double)

protected override void OnProgressChanged(double progress)

Parameters

progress double