Struct ColorThreshold
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
Represents a color threshold for gradient bar effects. When the bar value reaches or exceeds the threshold percentage, this color is used.
public record struct ColorThreshold : IEquatable<ColorThreshold>
- Implements
- Inherited Members
Constructors
ColorThreshold(double, Color)
Represents a color threshold for gradient bar effects. When the bar value reaches or exceeds the threshold percentage, this color is used.
public ColorThreshold(double Threshold, Color Color)
Parameters
ThresholddoubleThe percentage threshold (0-100) at which this color activates.
ColorColorThe color to use when value meets or exceeds the threshold.
Properties
Color
The color to use when value meets or exceeds the threshold.
public Color Color { readonly get; set; }
Property Value
- Color
Threshold
The percentage threshold (0-100) at which this color activates.
public double Threshold { readonly get; set; }