Пример #1
0
        public override bool Equals(Object obj)
        {
            ColorRGB color = (ColorRGB)obj;

            return(color.r.Equals(r) && color.g.Equals(g) && color.b.Equals(b));
        }
Пример #2
0
 public ColorRGB(ColorRGB colorObj)
 {
     r = colorObj.r;
     g = colorObj.g;
     b = colorObj.b;
 }