public void copyFrom(TGColor color) {
   this.setR(color.getR());
   this.setG(color.getG());
   this.setB(color.getB());
 }
 private void writeRGBColor(TGColor color) {
   // escribo el RGB
   writeByte(color.getR());
   writeByte(color.getG());
   writeByte(color.getB());
 }
 public boolean isEqual(TGColor color) {
   return (this.getR() == color.getR()
       && this.getG() == color.getG()
       && this.getB() == color.getB());
 }