Class ColorCurve
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)
Cretes 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 2 curves.
Declaration
protected override Color Lerp(Color value1, Color value2, float amount)
Parameters
Type | Name | Description |
---|---|---|
Color | value1 | The value 1. |
Color | value2 | The value 2. |
float | amount | The lerp amount. |
Returns
Type | Description |
---|---|
Color | The interpolated value. |