Example #1
0
 /**
  * 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());
 }
Example #2
0
 /**
  * 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());
 }