C# Class CUE.NET.Gradients.RainbowGradient

Represents a rainbow gradient which circles through all colors of the HUE-color-space.
See http://upload.wikimedia.org/wikipedia/commons/a/ad/HueScale.svg as reference
Inheritance: IGradient
Afficher le fichier Open project: DarthAffe/CUE.NET Class Usage Examples

Méthodes publiques

Méthode Description
GetColor ( float offset ) : CorsairColor

Gets the color on the rainbow at the given offset.

RainbowGradient ( float startHue = 0f, float endHue = 360f ) : CUE.NET.Devices.Generic

Initializes a new instance of the RainbowGradient class.

Method Details

GetColor() public méthode

Gets the color on the rainbow at the given offset.
public GetColor ( float offset ) : CorsairColor
offset float The percentage offset to take the color from.
Résultat CUE.NET.Devices.Generic.CorsairColor

RainbowGradient() public méthode

Initializes a new instance of the RainbowGradient class.
public RainbowGradient ( float startHue = 0f, float endHue = 360f ) : CUE.NET.Devices.Generic
startHue float The hue (in degrees) to start from (default: 0)
endHue float The hue (in degrees) to end with (default: 360)
Résultat CUE.NET.Devices.Generic