Class ColorUtility
Syntax
public static class ColorUtility
Methods
CreateBackground(SkinnedColor)
Declaration
public static GUIStyle CreateBackground(this SkinnedColor skinnedColor)
Parameters
Returns
CreateBackground(Color)
Declaration
public static GUIStyle CreateBackground(this Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
CreateBox(Color, Color)
Declaration
public static Texture2D CreateBox(Color fill, Color border)
Parameters
Returns
GetPixel(SkinnedColor)
Declaration
public static Texture2D GetPixel(this SkinnedColor skinnedColor)
Parameters
Returns
GetPixel(Color)
Declaration
public static Texture2D GetPixel(this Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Gray(Single)
Declaration
public static Color Gray(float brightness)
Parameters
Type |
Name |
Description |
Single |
brightness |
|
Returns
ToHexString(SkinnedColor)
Declaration
public static string ToHexString(this SkinnedColor skinnedColor)
Parameters
Returns
WithAlpha(Color, Single)
Declaration
public static Color WithAlpha(this Color color, float alpha)
Parameters
Returns
WithAlphaMultiplied(Color, Single)
Declaration
public static Color WithAlphaMultiplied(this Color color, float alphaMultiplier)
Parameters
Type |
Name |
Description |
Color |
color |
|
Single |
alphaMultiplier |
|
Returns