C# Class CUE.NET.Gradients.AbstractGradient

Represents a basic gradient.
Inheritance: IGradient
Afficher le fichier Open project: DarthAffe/CUE.NET

Méthodes publiques

Méthode Description
GetColor ( float offset ) : CorsairColor

Gets the color of the gradient on the specified offset.

Méthodes protégées

Méthode 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 méthode

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

ClipOffset() protected méthode

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

GetColor() public abstract méthode

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.
Résultat CUE.NET.Devices.Generic.CorsairColor