public static TGColor newColor(int r, int g, int b) { TGColor color = new TGFactory().newColor(); color.setR(r); color.setG(g); color.setB(b); return color; }
private void readColor(TGColor color) throws IOException { color.setR(readUnsignedByte()); color.setG(readUnsignedByte()); color.setB(readUnsignedByte()); read(); }
private void readRGBColor(TGColor color) { // leo el RGB color.setR((readByte() & 0xff)); color.setG((readByte() & 0xff)); color.setB((readByte() & 0xff)); }
private void readColor(TGColor color) { // escribo el RGB color.setR(readInt()); color.setG(readInt()); color.setB(readInt()); }