/** * Parses color as RGBA * * @param p Parser to parse from * @return always AlphaColor */ public static AlphaColor parseRGBA(Parser p) { return new AlphaColor(p.getUByte(), p.getUByte(), p.getUByte(), p.getUByte()); }
/** * Parses color as RGB * * @param p Parser to parse from * @return always Color */ public static Color parseRGB(Parser p) { return new Color(p.getUByte(), p.getUByte(), p.getUByte()); }