Class RainbowGradient
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inherited Members
Namespace: RGB.NET.Presets.Textures.Gradients
Assembly: RGB.NET.Presets.dll
Syntax
public sealed class RainbowGradient : AbstractDecoratable<IGradientDecorator>, IBindable, IGradient, IDecoratable<IGradientDecorator>, IDecoratable, INotifyPropertyChanged
Constructors
| Edit this page View SourceRainbowGradient(float, float)
Initializes a new instance of the RainbowGradient class.
Declaration
public RainbowGradient(float startHue = 0, float endHue = 360)
Parameters
Type | Name | Description |
---|---|---|
float | startHue | The hue (in degrees) to start from (default: 0) |
float | endHue | The hue (in degrees) to end with (default: 360) |
Properties
| Edit this page View SourceEndHue
Gets or sets the hue (in degrees) to end the with.
Declaration
public float EndHue { get; set; }
Property Value
Type | Description |
---|---|
float |
StartHue
Gets or sets the hue (in degrees) to start from.
Declaration
public float StartHue { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceGetColor(float)
Declaration
public Color GetColor(float offset)
Parameters
Type | Name | Description |
---|---|---|
float | offset | The percentage offset to take the Color from. |
Returns
Type | Description |
---|---|
Color | The Color at the specific offset. |
Move(float)
Moves the IGradient by the provided offset.
Declaration
public void Move(float offset)
Parameters
Type | Name | Description |
---|---|---|
float | offset | The offset the IGradient should be moved. |
Events
| Edit this page View SourceGradientChanged
Occurs if the IGradient is changed.
Declaration
public event EventHandler? GradientChanged
Event Type
Type | Description |
---|---|
EventHandler |