Last active
September 27, 2015 20:48
-
-
Save monkstone/1330060 to your computer and use it in GitHub Desktop.
Processing Main Applet Produced From Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#assign licenseFirst = "/*"> | |
<#assign licensePrefix = " * "> | |
<#assign licenseLast = " */"> | |
<#include "../Licenses/license-${project.license}.txt"> | |
import processing.core.*; | |
/** | |
* | |
* @author ${user} | |
*/ | |
@SuppressWarnings("serial") | |
public class ${name} extends PApplet{ | |
@Override | |
public void setup(){ | |
size(300, 300, P3D); | |
} | |
@Override | |
public void draw(){ | |
} | |
/** | |
* @param passedArgs the command line arguments | |
*/ | |
static public void main(String[] passedArgs) { | |
String[] appletArgs = new String[] {${name}.class.getName()}; | |
if (passedArgs != null) { | |
PApplet.main(concat(appletArgs, passedArgs)); | |
} else { | |
PApplet.main(appletArgs); | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment