Class LinearGradient
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.
Inheritance
LinearGradient
Inherited Members
Namespace: RGB.NET.Presets.Textures.Gradients
Assembly: RGB.NET.Presets.dll
Syntax
public sealed class LinearGradient : AbstractGradient, IBindable, IGradient, IDecoratable<IGradientDecorator>, IDecoratable, INotifyPropertyChanged
Constructors
| Edit this page View SourceLinearGradient()
Initializes a new instance of the AbstractGradient class.
Declaration
public LinearGradient()
LinearGradient(params GradientStop[])
Initializes a new instance of the AbstractGradient class.
Declaration
public LinearGradient(params GradientStop[] gradientStops)
Parameters
Type | Name | Description |
---|---|---|
GradientStop[] | gradientStops | The stops with which the gradient should be initialized. |
LinearGradient(bool, params GradientStop[])
Initializes a new instance of the AbstractGradient class.
Declaration
public LinearGradient(bool wrapGradient, params GradientStop[] gradientStops)
Parameters
Type | Name | Description |
---|---|---|
bool | wrapGradient | Specifies whether the gradient should wrapp or not (see WrapGradient for an example of what this means). |
GradientStop[] | gradientStops | The stops with which the gradient should be initialized. |
Methods
| Edit this page View SourceGetColor(float)
Declaration
public override 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. |