Files
processing4/core/examples/src/main/java/Basic.java
2025-04-18 17:42:31 +02:00

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);
}
}
}