mirror of
https://github.com/processing/processing4.git
synced 2026-02-01 12:51:37 +01:00
Examples for Core development
This commit is contained in:
22
core/examples/src/main/java/Basic.java
Normal file
22
core/examples/src/main/java/Basic.java
Normal file
@@ -0,0 +1,22 @@
|
||||
import processing.core.PApplet;
|
||||
|
||||
public class Basic extends PApplet {
|
||||
public void settings(){
|
||||
size(500, 500);
|
||||
}
|
||||
|
||||
public void draw(){
|
||||
ellipse(width / 2f, height / 2f, 125f, 125f);
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user