예제 #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;
 }