Added example Processing applet
This commit is contained in:
parent
3d6f2a2173
commit
c996d580a7
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…
Reference in New Issue
Block a user