Class ColorCurve
A class that manages a color gradient.
Inherited Members
Namespace: Evergine.Common.Curves
Assembly: Evergine.Common.dll
Syntax
public class ColorCurve : Curve<Color, ColorKeyframe>
Methods
CreateKey(float, Color)
Creates a new key element.
Declaration
protected override ColorKeyframe CreateKey(float lerp, Color value)
Parameters
| Type | Name | Description |
|---|---|---|
| float | lerp | The lerp. |
| Color | value | The value. |
Returns
| Type | Description |
|---|---|
| ColorKeyframe | The keyframe. |
Overrides
Lerp(Color, Color, float)
Obtains an interpolated value between two curves.
Declaration
protected override Color Lerp(Color value1, Color value2, float amount)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | value1 | The first value. |
| Color | value2 | The second value. |
| float | amount | The interpolation amount. |
Returns
| Type | Description |
|---|---|
| Color | The interpolated value. |