All Downloads are FREE. Search and download functionalities are using the official Maven repository.

processing.app.BaseSplash Maven / Gradle / Ivy

Go to download

Processing is a programming language, development environment, and online community. This PDE package contains the Processing IDE.

There is a newer version: 3.3.7
Show newest version
package processing.app;

import java.io.File;

import processing.app.ui.SplashWindow;
import processing.app.ui.Toolkit;


public class BaseSplash {
  static public void main(String[] args) {
    try {
      final boolean hidpi = Toolkit.highResDisplay();
      final String filename = "lib/about-" + (hidpi ? 2 : 1) + "x.png";
      File splashFile = Platform.getContentFile(filename);
      SplashWindow.splash(splashFile.toURI().toURL(), hidpi);
      SplashWindow.invokeMain("processing.app.Base", args);
      SplashWindow.disposeSplash();
    } catch (Exception e) {
      e.printStackTrace();
      // !@#!@$$! umm
      //SplashWindow.invokeMain("processing.app.Base", args);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy