ColorHCV Structure |
Namespace: Experilous.MakeItColorful
[SerializableAttribute] public struct ColorHCV : IEquatable<ColorHCV>, IComparable<ColorHCV>
The ColorHCV type exposes the following members.
Name | Description | |
---|---|---|
![]() | ColorHCV(Color) |
Initializes a color by converting the given RGB color to the HCV color space.
|
![]() | ColorHCV(ColorCMY) |
Initializes a color by converting the given CMY color to the HCV color space.
|
![]() | ColorHCV(ColorCMYK) |
Initializes a color by converting the given CMYK color to the HCV color space.
|
![]() | ColorHCV(ColorHCL) |
Initializes a color by converting the given HCL color to the HCV color space.
|
![]() | ColorHCV(ColorHCY) |
Initializes a color by converting the given HCY color to the HCV color space.
|
![]() | ColorHCV(ColorHSL) |
Initializes a color by converting the given HSL color to the HCV color space.
|
![]() | ColorHCV(ColorHSV) |
Initializes a color by converting the given HSV color to the HCV color space.
|
![]() | ColorHCV(ColorHSY) |
Initializes a color by converting the given HSY color to the HCV color space.
|
![]() | ColorHCV(Single, Single, Single) |
Initializes a color with the given hue, chroma, and value, assuming an opacity of 1.
|
![]() | ColorHCV(Single, Single, Single, Single) |
Initializes a color with the given hue, chroma, value, and opacity.
|
Name | Description | |
---|---|---|
![]() ![]() | black |
Solid black. HCVA is (0, 0, 0, 1).
|
![]() ![]() | blue |
Solid blue. HCVA is (2/3, 1, 1, 1).
|
![]() ![]() | clear |
Completely transparent black. HCVA is (0, 0, 0, 0).
|
![]() ![]() | cyan |
Solic cyan. HCVA is (1/2, 1, 1, 1).
|
![]() ![]() | gray |
Solid gray. HCVA is (0, 0, 1/2, 1).
|
![]() ![]() | green |
Solid green. HCVA is (1/3, 1, 1, 1).
|
![]() ![]() | grey |
Solid gray, with English spelling. HCVA is (0, 0, 1/2, 1).
|
![]() | Item |
Provides access to the four color channels using a numeric zero-based index.
|
![]() ![]() | magenta |
Solid magenta. HCVA is (5/6, 1, 1, 1).
|
![]() ![]() | red |
Solid red. HCVA is (0, 1, 1, 1).
|
![]() ![]() | white |
Solid white. HCVA is (0, 0, 1, 1).
|
![]() ![]() | yellow |
Solid yellow. HCVA is (1/6, 1, 1, 1).
|
Name | Description | |
---|---|---|
![]() ![]() | AreOrdered |
Checks if the first color is lexicographically ordered before the second color.
|
![]() | Compare |
Determines the ordering of the first color in relation to the second color.
|
![]() | CompareTo |
Determines the ordering of this color with the specified color.
|
![]() | Equals(Object) |
Checks if the color is equal to a specified color.
(Overrides ValueTypeEquals(Object).) |
![]() | Equals(ColorHCV) |
Checks if the color is equal to a specified color.
|
![]() ![]() | FromCMY(Single, Single, Single) |
Converts the given CMY color to the HCV color space.
|
![]() ![]() | FromCMY(Single, Single, Single, Single) |
Converts the given CMY color to the HCV color space.
|
![]() ![]() | FromCMYK(Single, Single, Single, Single) |
Converts the given CMYK color to the HCV color space.
|
![]() ![]() | FromCMYK(Single, Single, Single, Single, Single) |
Converts the given CMYK color to the HCV color space.
|
![]() ![]() | FromHCL(Single, Single, Single) |
Converts the given HCL color to the HCV color space.
|
![]() ![]() | FromHCL(Single, Single, Single, Single) |
Converts the given HCL color to the HCV color space.
|
![]() ![]() | FromHCY(Single, Single, Single) |
Converts the given HCY color to the HCV color space.
|
![]() ![]() | FromHCY(Single, Single, Single, Single) |
Converts the given HCY color to the HCV color space.
|
![]() ![]() | FromHSL(Single, Single, Single) |
Converts the given HSL color to the HCV color space.
|
![]() ![]() | FromHSL(Single, Single, Single, Single) |
Converts the given HSL color to the HCV color space.
|
![]() ![]() | FromHSV(Single, Single, Single) |
Converts the given HSV color to the HCV color space.
|
![]() ![]() | FromHSV(Single, Single, Single, Single) |
Converts the given HSV color to the HCV color space.
|
![]() ![]() | FromHSY(Single, Single, Single) |
Converts the given HSY color to the HCV color space.
|
![]() ![]() | FromHSY(Single, Single, Single, Single) |
Converts the given HSY color to the HCV color space.
|
![]() ![]() | FromRGB(Single, Single, Single) |
Converts the given RGB color to the HCV color space.
|
![]() ![]() | FromRGB(Single, Single, Single, Single) |
Converts the given RGB color to the HCV color space.
|
![]() | GetCanonical |
Gets the canonical representation of the color.
|
![]() | GetChroma |
Gets the chroma of the color.
|
![]() | GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) |
![]() | GetHue |
Gets the hue of the color.
|
![]() | GetIntensity |
Gets the intensity of the color.
|
![]() | GetLightness |
Gets the lightness of the color.
|
![]() | GetLuma |
Gets the luma (apparent brightness) of the color.
|
![]() ![]() | GetMaxChroma |
Indicates the maximum value that the chroma channel can have for a given value of the value channel, if it is to remain valid within the RGB color space.
|
![]() ![]() | GetMinMaxValue |
Indicates the range of values that the value channel can have for a given chroma value, if the color is to remain valid within the RGB color space.
|
![]() | GetNearestValid |
Gets the nearest HCV color that is also valid within the RGB color space.
|
![]() | GetValid |
Gets an HCL color that is also valid within the RGB color space, using chromaBias to determine how to preserve chroma or luma.
|
![]() | GetValue |
Gets the value of the color.
|
![]() ![]() | GetValueAtMaxChroma |
Indicates the value that the value channel must have when the chroma channel is at its maximum value, if the color is to remain valid within the RGB color space.
|
![]() | IsCanonical |
Indicates if the color is canonical, or if there is a different representation of this color that is canonical.
|
![]() | IsValid |
Indicates if the values for hue, chroma, and value together represent a valid color within the RGB color space.
|
![]() ![]() | Lerp |
Performs a linear interpolation between the two colors specified for each color channel independently.
|
![]() ![]() | LerpBackward |
Performs a linear interpolation between the two colors specified for each color channel independently, with hue always decreasing and wrapping if necessary.
|
![]() ![]() | LerpBackwardUnclamped |
Performs a linear interpolation between the two colors specified for each color channel independently, with hue always decreasing and wrapping if necessary.
|
![]() ![]() | LerpForward |
Performs a linear interpolation between the two colors specified for each color channel independently, with hue always increasing and wrapping if necessary.
|
![]() ![]() | LerpForwardUnclamped |
Performs a linear interpolation between the two colors specified for each color channel independently, with hue always increasing and wrapping if necessary.
|
![]() ![]() | LerpUnclamped |
Performs a linear interpolation between the two colors specified for each color channel independently.
|
![]() | Opaque |
Gets the fully opaque variant of the current color.
|
![]() | ToString |
Converts the color to string representation, appropriate for diagnositic display.
(Overrides ValueTypeToString.) |
![]() | ToString(String) |
Converts the color to string representation, appropriate for diagnositic display.
|
![]() | Translucent |
Gets a partially translucent variant of the current color.
|
![]() | Transparent |
Gets the fully transparent variant of the current color.
|
Name | Description | |
---|---|---|
![]() ![]() | Addition |
Adds the color channels of the two specified colors together, wrapping the hue channel if necessary.
|
![]() ![]() | Division |
Divides the color channels of the specified color by the specified value, wrapping the hue channel if necessary.
|
![]() ![]() | Equality |
Checks if the two colors are equal to each other.
|
![]() ![]() | (Vector3 to ColorHCV) |
Converts the specified Vector3 color to an HCV color, with x as hue, y as chroma, z as value, assuming an opacity of 1.
|
![]() ![]() | (Vector4 to ColorHCV) |
Converts the specified Vector4 color to an HCV color, with x as hue, y as chroma, z as value, and w as opacity.
|
![]() ![]() | (ColorCMY to ColorHCV) |
Converts the given CMY color to the HCV color space.
|
![]() ![]() | (ColorCMYK to ColorHCV) |
Converts the given CMYK color to the HCV color space.
|
![]() ![]() | (ColorHCL to ColorHCV) |
Converts the given HCL color to the HCV color space.
|
![]() ![]() | (ColorHCV to Vector3) |
Converts the specified color to a Vector3, with hue as x, chroma as y, and value as z, while opacity is discarded.
|
![]() ![]() | (ColorHCV to Vector4) |
Converts the specified color to a Vector4, with hue as x, chroma as y, value as z, and opacity as w.
|
![]() ![]() | (ColorHCY to ColorHCV) |
Converts the given HCY color to the HCV color space.
|
![]() ![]() | (ColorHSL to ColorHCV) |
Converts the given HSL color to the HCV color space.
|
![]() ![]() | (ColorHSV to ColorHCV) |
Converts the given HSV color to the HCV color space.
|
![]() ![]() | (ColorHSY to ColorHCV) |
Converts the given HSY color to the HCV color space.
|
![]() ![]() | GreaterThan |
Checks if the first color is lexicographically ordered after the second color.
|
![]() ![]() | GreaterThanOrEqual |
Checks if the first color is not lexicographically ordered before the second color.
|
![]() ![]() | (Color to ColorHCV) |
Converts the given RGB color to the HCV color space.
|
![]() ![]() | (ColorHCV to Color) |
Converts the given HCV color to the RGB color space.
|
![]() ![]() | Inequality |
Checks if the two colors are not equal to each other.
|
![]() ![]() | LessThan |
Checks if the first color is lexicographically ordered before the second color.
|
![]() ![]() | LessThanOrEqual |
Checks if the first color is not lexicographically ordered after the second color.
|
![]() ![]() | Multiply(Single, ColorHCV) |
Multiplies the color channels of the specified color by the specified value, wrapping the hue channel if necessary.
|
![]() ![]() | Multiply(ColorHCV, ColorHCV) |
Multiplies the color channels of the two specified colors together, wrapping the hue channel if necessary.
|
![]() ![]() | Multiply(ColorHCV, Single) |
Multiplies the color channels of the specified color by the specified value, wrapping the hue channel if necessary.
|
![]() ![]() | Subtraction |
Subtracts the color channels of the two specified colors together, wrapping the hue channel if necessary.
|
Name | Description | |
---|---|---|
![]() | a |
The color's alpha, or opacity, in the range [0, 1].
|
![]() | c |
The color's chroma, in the range [0, 1].
|
![]() ![]() | channelCount |
The number of color channels, including opacity, for colors in this color space.
|
![]() | h |
The color's hue, in the range [0, 1).
|
![]() | v |
The color's value, in the range [0, 1].
|