/** * helper function to load the large pixelinvaders logo * * @return */ public static Image createLargeIcon() { PImage img = Collector.getInstance().getPapplet().loadImage("pics/logoBig.jpg"); if (img != null) { return img.getImage(); } img = new PImage(400, 400); return img.getImage(); }
/** * helper function to load the large pixelinvaders logo * * @return */ public static Image createLargeIcon(PApplet papplet) { PImage img = papplet.loadImage("pics/logoBig.jpg"); if (img != null) { return img.getImage(); } LOG.log(Level.WARNING, "failed to load icon image!"); img = new PImage(400, 400); return img.getImage(); }