Struct HueSpec
Represents a hue specification that can be either a fixed value or a runtime range.
public readonly record struct HueSpec : IEquatable<HueSpec>
- Implements
- Inherited Members
Properties
IsRange
public bool IsRange { get; }
Property Value
Max
public int Max { get; }
Property Value
Min
public int Min { get; }
Property Value
Methods
FromRange(int, int)
public static HueSpec FromRange(int min, int max)
Parameters
Returns
FromValue(int)
public static HueSpec FromValue(int value)
Parameters
valueint
Returns
Resolve(IEnhancedRandom?)
public int Resolve(IEnhancedRandom? rng = null)
Parameters
rngIEnhancedRandom
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.