mirror of
https://github.com/processing/processing4.git
synced 2026-01-30 11:51:54 +01:00
36 lines
753 B
Java
36 lines
753 B
Java
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);
|
|
}
|
|
|
|
}
|
|
}
|