mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Examples for Core development
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
plugins {
|
||||
id("java")
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url = uri("https://jogamp.org/deployment/maven") }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":core"))
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
rootProject.name = "processing"
|
||||
include(
|
||||
"core",
|
||||
"core:examples",
|
||||
"app",
|
||||
"java",
|
||||
"java:preprocessor",
|
||||
|
||||
Reference in New Issue
Block a user