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