template
Class HelloWorld
java.lang.Object
template.HelloWorld
public class HelloWorld
- extends java.lang.Object
this is a template class and can be used to start a new processing library.
make sure you rename this class as well as the name of the package template
this class belongs to.
- Author:
- andreas schlegel
- +Example
import template.*;
void setup() {
size(400,400);
HelloWorld hello = new HelloWorld(this);
println(hello.getVariable());
}
void draw() {
background(0);
}
Field Summary |
java.lang.String |
VERSION
|
Constructor Summary |
HelloWorld(processing.core.PApplet theParent)
a Constructor, usually called in the setup() method in your sketch to
initialize and start the library. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
public final java.lang.String VERSION
- See Also:
- Constant Field Values
HelloWorld
public HelloWorld(processing.core.PApplet theParent)
- a Constructor, usually called in the setup() method in your sketch to
initialize and start the library.
- Parameters:
theParent
-
- +Example
import template.*;
void setup() {
size(400,400);
HelloWorld hello = new HelloWorld(this);
println(hello.getVariable());
}
void draw() {
background(0);
}
version
public java.lang.String version()
- return the version of the library.
- Returns:
- String
setVariable
public void setVariable(int theA,
int theB)
- Parameters:
theA
- the width of testtheB
- the height of test
getVariable
public int getVariable()
- Returns:
- int
processing library hello by yourNameHere. (c) 2008