C# Class CUE.NET.Gradients.AbstractGradient

Represents a basic gradient.
Inheritance: IGradient
Show file Open project: DarthAffe/CUE.NET

Public Methods

Method Description
GetColor ( float offset ) : CorsairColor

Gets the color of the gradient on the specified offset.

Protected Methods

Method Description
AbstractGradient ( ) : System.Collections.Generic

Initializes a new instance of the AbstractGradient class.

ClipOffset ( float offset ) : float

Clips the offset and ensures, that it is inside the bounds of the stop list.

Method Details

AbstractGradient() protected method

Initializes a new instance of the AbstractGradient class.
protected AbstractGradient ( ) : System.Collections.Generic
return System.Collections.Generic

ClipOffset() protected method

Clips the offset and ensures, that it is inside the bounds of the stop list.
protected ClipOffset ( float offset ) : float
offset float
return float

GetColor() public abstract method

Gets the color of the gradient on the specified offset.
public abstract GetColor ( float offset ) : CorsairColor
offset float The percentage offset to take the color from.
return CUE.NET.Devices.Generic.CorsairColor