Struct ColorHsva
A struct representing the hue, saturation, value, and alpha components of a particular color
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Parameters
Assembly: solution.dll
Syntax
[Serializable]
public struct ColorHsva
Constructors
| Name | Description |
|---|---|
| ColorHsva(float, float, float, float) | Constructs an ColorHsva struct |
Fields
| Name | Description |
|---|---|
| a | A float value representing the alpha component of a color |
| h | A float value representing the hue component of a color |
| s | A float value representing the saturation component of a color |
| v | A float value representing the value component of a color |
Methods
| Name | Description |
|---|---|
| ToString() | Generates a string representation of a ColorHsva |
Operators
| Name | Description |
|---|---|
| explicit operator ColorHsva(Color) | Converts an RGBA Color to an HSVA Color |
| explicit operator Color(ColorHsva) | Converts an HSVA Color to an RGBA Color |
| implicit operator ColorHsva(float4) | Implicitly converts an float4 to an HSVA color |
| implicit operator float4(ColorHsva) | Implicitly converts an HSVA Color to a float4 |
| implicit operator Vector4(ColorHsva) | Implicitly converts an HSVA Color to a Vector4 |
| implicit operator ColorHsva(Vector4) | Implicitly converts an Vector4 to an HSVA color |