Added example Processing applet
This commit is contained in:
parent
3d6f2a2173
commit
c996d580a7
1 changed files with 26 additions and 0 deletions
26
src/ExampleApplet.java
Normal file
26
src/ExampleApplet.java
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
import processing.core.*;
|
||||
|
||||
public class ExampleApplet extends PApplet {
|
||||
|
||||
public static void main(String args[]) {
|
||||
PApplet.main("ExampleApplet");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void settings() {
|
||||
size(200, 200);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setup() {
|
||||
clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw() {
|
||||
clear();
|
||||
fill(255);
|
||||
rect(50, 50, 100, 100);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue