Operator implicit operator
implicit operator float4(ColorHsva)
Implicitly converts an HSVA Color to a float4
Declaration
public static implicit operator float4(ColorHsva c)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorHsva | c | The HSVA color to convert to a float4 |
Returns
| Type | Description |
|---|---|
| float4 | A new float4 |
implicit operator ColorHsva(float4)
Implicitly converts an float4 to an HSVA color
Declaration
public static implicit operator ColorHsva(float4 f)
Parameters
| Type | Name | Description |
|---|---|---|
| float4 | f | The float4 to convert to an HSVA color |
Returns
| Type | Description |
|---|---|
| ColorHsva | A new HSVA color |
implicit operator Vector4(ColorHsva)
Implicitly converts an HSVA Color to a Vector4
Declaration
public static implicit operator Vector4(ColorHsva c)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorHsva | c | The HSVA color to convert to a Vector4 |
Returns
| Type | Description |
|---|---|
| Vector4 | A new Vector4 |
implicit operator ColorHsva(Vector4)
Implicitly converts an Vector4 to an HSVA color
Declaration
public static implicit operator ColorHsva(Vector4 v)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector4 | v | The Vector4 color to convert to an HSVA color |
Returns
| Type | Description |
|---|---|
| ColorHsva | A new HSVA color |