// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global
// ReSharper disable MemberCanBePrivate.Global
using RGB.NET.Core;
namespace RGB.NET.Presets.Textures.Gradients;
///
/// Represents a stop on a gradient.
///
public sealed class GradientStop : AbstractBindable
{
#region Properties & Fields
private float _offset;
///
/// Gets or sets the percentage offset to place this . This should be inside the range of [0..1] but it's not necessary.
///
public float Offset
{
get => _offset;
set => SetProperty(ref _offset, value);
}
private Color _color;
///
/// Gets or sets the of this .
///
public Color Color
{
get => _color;
set => SetProperty(ref _color, value);
}
#endregion
#region Constructors
///
/// Initializes a new instance of the class.
///
/// The percentage offset to place this .
/// The of the .
public GradientStop(float offset, Color color)
{
this.Offset = offset;
this.Color = color;
}
#endregion
}