Class GradientStop
Represents a stop on a gradient.
Inherited Members
Namespace: RGB.NET.Presets.Textures.Gradients
Assembly: RGB.NET.Presets.dll
Syntax
public sealed class GradientStop : AbstractBindable, IBindable, INotifyPropertyChanged
Constructors
| Edit this page View SourceGradientStop(float, Color)
Initializes a new instance of the GradientStop class.
Declaration
public GradientStop(float offset, Color color)
Parameters
Type | Name | Description |
---|---|---|
float | offset | The percentage offset to place this GradientStop. |
Color | color | The Color of the GradientStop. |
Properties
| Edit this page View SourceColor
Gets or sets the Color of this GradientStop.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Offset
Gets or sets the percentage offset to place this GradientStop. This should be inside the range of [0..1] but it's not necessary.
Declaration
public float Offset { get; set; }
Property Value
Type | Description |
---|---|
float |