Class ColorExtensions
Extension methods for the Color type
Inheritance
object
ColorExtensions
Namespace: i5.Toolkit.Core.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class ColorExtensions
Methods
ToArray(Color, bool)
Converts the given color to a float array
Declaration
public static float[] ToArray(this Color color, bool includeAlpha = true)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color to convert |
bool | includeAlpha | If true, the alpha value is included in the array, otherwise not |
Returns
Type | Description |
---|---|
float[] | Returns a float array with three or four values containing the rgb and rgba components |