Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,5 @@ processing-examples
.gradle
core/build/
build/publish/
/app/build
/java/build
14 changes: 14 additions & 0 deletions core/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Processing Core

Welcome to the Core of Processing, this is the code that will be inlcuded in your sketches and is responsible for methods like `ellipse()` and `background()`.



## Developing Core

Since processing 4.3.1 we have started moving to a gradle build system for core.

### Building and Debugging core
Open the project in IntelliJ IDEA. Then you can go into the `src/processing/sketches` folder and run any of the sketches to test the core. This only supported in the IntelliJ editor for now, we will add support for other editors and command line at a later date.


## There are significant changes to `core` in Processing 3.


Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {
sourceSets{
main{
java{
srcDirs("src/processing")
srcDirs("src")
}
resources{
srcDirs("src")
Expand Down
27 changes: 27 additions & 0 deletions core/src/processing/sketches/Basic.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package processing.sketches;

import processing.core.PApplet;

public class Basic extends PApplet {

public void settings(){
size(800, 800);
}
public void setup(){

}

public void draw(){

}

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

}
}
Loading