Class HueSaturationValue
The Hue, Saturation, and Value (HSV) model
Inheritance
object
HueSaturationValue
Assembly: Terminaux.dll
Syntax
public class HueSaturationValue : BaseColorModel
Properties
|
Edit this page
View Source
Hue
The position on the color wheel, known as the Hue [0.0 -> 1.0, 0.5 being 180 degrees]
Declaration
public double Hue { get; }
Property Value
|
Edit this page
View Source
HueWhole
The position on the color wheel, known as the Hue [0 -> 360]
Declaration
public int HueWhole { get; }
Property Value
|
Edit this page
View Source
ReverseHue
The reverse hue position on the color wheel, known as the Reverse Hue [0.0 -> 1.0, 0.5 being 180 degrees]
Declaration
public double ReverseHue { get; }
Property Value
|
Edit this page
View Source
ReverseHueWhole
The reverse hue position on the color wheel, known as the Reverse Hue [0 -> 360]
Declaration
public double ReverseHueWhole { get; }
Property Value
|
Edit this page
View Source
Saturation
The saturation of the color, indicating how intense the color is [0.0 -> 1.0]
Declaration
public double Saturation { get; }
Property Value
|
Edit this page
View Source
SaturationWhole
The saturation of the color, indicating how intense the color is [0 -> 100]
Declaration
public int SaturationWhole { get; }
Property Value
|
Edit this page
View Source
Value
The value of the color [0.0 -> 1.0]
Declaration
public double Value { get; }
Property Value
|
Edit this page
View Source
ValueWhole
The value of the color [0 -> 100]
Declaration
public int ValueWhole { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
object.Equals(object)
|
Edit this page
View Source
Equals(HueSaturationValue)
Declaration
public bool Equals(HueSaturationValue other)
Parameters
Returns
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
object.GetHashCode()
|
Edit this page
View Source
IsSpecifierAndValueValid(string)
Does the string specifier represent a valid HSV specifier?
Declaration
public static bool IsSpecifierAndValueValid(string specifier)
Parameters
Type |
Name |
Description |
string |
specifier |
Specifier that represents a valid HSV specifier
|
Returns
Type |
Description |
bool |
True if the specifier is valid; false otherwise.
|
|
Edit this page
View Source
IsSpecifierValid(string, bool)
Does the string specifier represent a valid HSV specifier?
Declaration
public static bool IsSpecifierValid(string specifier, bool checkParts = false)
Parameters
Type |
Name |
Description |
string |
specifier |
Specifier that represents a valid HSV specifier
|
bool |
checkParts |
Whether to check the parts count or not
|
Returns
Type |
Description |
bool |
True if the specifier is valid; false otherwise.
|
|
Edit this page
View Source
ParseSpecifier(string)
Declaration
public static HueSaturationValue ParseSpecifier(string specifier)
Parameters
Type |
Name |
Description |
string |
specifier |
Specifier of HSV
|
Returns
Exceptions
|
Edit this page
View Source
ParseSpecifierToRgb(string, ColorSettings?)
Declaration
public static RedGreenBlue ParseSpecifierToRgb(string specifier, ColorSettings? settings = null)
Parameters
Type |
Name |
Description |
string |
specifier |
Specifier of HSV
|
ColorSettings |
settings |
Settings to use. Use null for global settings
|
Returns
Exceptions
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
object.ToString()
Operators
|
Edit this page
View Source
operator ==(HueSaturationValue, HueSaturationValue)
Declaration
public static bool operator ==(HueSaturationValue left, HueSaturationValue right)
Parameters
Returns
|
Edit this page
View Source
operator !=(HueSaturationValue, HueSaturationValue)
Declaration
public static bool operator !=(HueSaturationValue left, HueSaturationValue right)
Parameters
Returns