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