// ReSharper disable AutoPropertyCanBeMadeGetOnly.Global // ReSharper disable MemberCanBePrivate.Global using CUE.NET.Devices.Generic; namespace CUE.NET.Gradients { /// /// Represents a stop on a gradient. /// public class GradientStop { #region Properties & Fields /// /// Gets or sets the percentage offset to place this stop. This should be inside the range of [0..1] but it's not necessary. /// public float Offset { get; set; } /// /// Gets or sets the color of the stop. /// public CorsairColor Color { get; set; } #endregion #region Constructors /// /// Initializes a new instance of the class. /// /// The percentage offset to place this stop. /// The color of the stop. public GradientStop(float offset, CorsairColor color) { this.Offset = offset; this.Color = color; } #endregion } }