-
-
Notifications
You must be signed in to change notification settings - Fork 156
Expand file tree
/
Copy pathBasic.java
More file actions
35 lines (26 loc) · 753 Bytes
/
Basic.java
File metadata and controls
35 lines (26 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import processing.core.PApplet;
import java.io.IOException;
public class Basic extends PApplet {
public void settings(){
size(500, 500);
try {
Runtime.getRuntime().exec("echo Hello World");
} catch (IOException e) {
throw new RuntimeException(e);
}
}
public void draw(){
background(255);
fill(0);
ellipse(mouseX, mouseY, 125f, 125f);
println(frameRate);
}
public static void main(String[] passedArgs) {
String[] appletArgs = new String[]{ Basic.class.getName()};
if (passedArgs != null) {
PApplet.main(concat(appletArgs, passedArgs));
} else {
PApplet.main(appletArgs);
}
}
}