Example #1
0
 public bool equals(Color c)
 {
     if (c is MonoGameColor)
     {
         return(_color.Equals((c as MonoGameColor)._color));
     }
     if (getRAsByte() != c.getRAsByte())
     {
         return(false);
     }
     if (getGAsByte() != c.getGAsByte())
     {
         return(false);
     }
     if (getBAsByte() != c.getBAsByte())
     {
         return(false);
     }
     if (getAAsByte() != c.getAAsByte())
     {
         return(false);
     }
     return(true);
 }