// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global // ReSharper disable MemberCanBePrivate.Global using RGB.NET.Core; namespace RGB.NET.Brushes.Gradients { /// /// Represents a stop on a gradient. /// public class GradientStop : AbstractBindable { #region Properties & Fields private double _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 double 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(double offset, Color color) { this.Offset = offset; this.Color = color; } #endregion } }