Constructors
ColorHSB
#Initializes a new instance of the ColorHSB class with the same color values as
colorParameters:
| color (Color) | RBG Color value to convert to HSB |
Properties
Methods
Distance
#Calculates the 'distance' of two HSB colors
Remarks: This is useful for comparing two different color values to determine if they are similar. Typically though, ColorHSL.Distance(ColorHSL, ColorHSL) gives the best result instead of this method.
Returns: The overall distance/difference between the two colours. A lower value indicates a closer match
Equals
#Compares a ColorHSB for equality
Parameters:
| other (ColorHSB) | Other instance to compare with |
Returns: True if
other is equal to this instance's value, false otherwiseEquals
#Compares an object to determine equality with this instance
Parameters:
| obj (object) | Object to compare |
Returns: True if the object is equal to this instance's value, false otherwise
Overrides: ValueType.Equals
GetHashCode
#Gets the hash code for this object
Returns: Hash code to use for this object
Overrides: ValueType.GetHashCode