-
-
Save kleerkoat/0422cd1ea0b749aae4b1ecbb6527ae50 to your computer and use it in GitHub Desktop.
Template Files For Processing Applications in NetBeans
This file contains 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"> | |
<#if package?? && package != ""> | |
package ${package}; | |
</#if> | |
/** | |
* | |
* @author ${user} | |
* @modified ${date} | |
* @version ${version} | |
*/ | |
import processing.core.PApplet; | |
public class ${name} { | |
private static PApplet parent; | |
public final String VERSION = "0.01"; | |
/** | |
* ${name} constructor | |
* @param parent PApplet | |
*/ | |
public ${name}(PApplet parent) { | |
this.parent = parent; | |
this.parent.registerMethod("dispose", this); | |
} | |
public void dispose() { | |
//this is a required method | |
} | |
} |
This file contains 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); | |
} | |
} | |
} | |
This file contains 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"> | |
<#if package?? && package != ""> | |
package ${package}; | |
</#if> | |
/** | |
* | |
* @author ${user} | |
*/ | |
import processing.core.PApplet; | |
public class ${name} { | |
private static PApplet parent; | |
/** | |
* ${name} constructor | |
* @param parent PApplet | |
*/ | |
public ${name}(PApplet parent) { | |
this.parent = parent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment