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
Show file Open project: DarthAffe/CUE.NET Class Usage Examples

Public Methods

Method 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 method

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.
return CUE.NET.Devices.Generic.CorsairColor

RainbowGradient() public method

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)
return CUE.NET.Devices.Generic