| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Warning
This repository is deprecated. Please use the latest Gradle template at processing/processing-library-template.
The following describes how to set up a Processing library project in Gradle, build it successfully, use IntelliJ IDEA for development/debugging of the library, and to make your library ready for distribution.
Run the included gradle wrapper command to compile the source code:
# windows
gradlew.bat compileJava
# mac / unix
./gradlew compileJavaTo build a new release package under /release/YourLibrary.zip, use:
# windows
gradlew.bat releaseProcessingLib
# mac / unix
./gradlew releaseProcessingLibIf you have Gradle installed in your system, you can replace gradlew with gradle in the commands above.
The library can be imported as an IntelliJ project following the steps below:
import processing.core.*; // import processing core
import template.library.*; // import sample library
public class HelloTest extends PApplet {
HelloLibrary hello;
public void settings() {
size(parseInt(args[0]), parseInt(args[1]));
smooth();
}
public void setup() {
hello = new HelloLibrary(this);
PFont font = createFont("Arial", 40);
textFont(font);
}
public void draw() {
background(0);
fill(255);
text(hello.sayHello(), 40, 200);
}
static public void main(String[] args) {
PApplet.main(HelloTest.class, "400", "400");
}
}
You should be able to run the program from the IntelliJ IDE.
Please note that any file read from the IntelliJ program should be placed inside the subdirectory data located inside the root of the IntelliJ project (i.e.: lib-dev/data)
This template is based on the Deep Vision Library by Florian Bruggisser, and was created as part of Jeongin Lee's Machine Learning Library project during Google Summer of Code 2022, mentored by Andrés Colubri.
| Back | FazBrowse Home | New Git URL |