duck

duck

Oct 15th, 2010
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. class DockyColor {
  2.  
  3.     static float convert = 0.00390625f;
  4.  
  5.     public static Color RGBA(int r, int g, int b, int a)
  6.     {
  7.         return new Color(r * convert, g * convert, b * convert, a * convert);    
  8.     }
  9.  
  10.     public static Color RGB(int r, int g, int b)
  11.     {
  12.         return new Color(r * convert, g * convert, b * convert);    
  13.     }
  14.  
  15.     public static Color nicePink { get { return  RGB(255,240,245); }}
  16.     public static Color tomato { get { return RGB(255,99,71); }}
  17.     public static Color poop { get { return RGB(160,82,45); }}
  18.     public static Color invisible { get { return RGBA(0,0,0,0); }}
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment