Examples for libp5x
This repository contains a number of examples ported from Processing to Java, using libp5x. They all use the Gradle build system. The
gradle.build files may be used as templates for other projects.
- Esfera, by David Pena - a 3D noise sphere using the LWJGL renderer, ported from https://github.com/processing/processing-docs/tree/master/content/examples/Demos/Performance/Esfera
- Flocking, by Daniel Shiffman - an implementation of a Boids program, using the Java2D renderer. Ported from https://github.com/processing/processing-docs/tree/master/content/examples/Topics/Simulate/Flocking
- PeasyCamSphere, by Neil C Smith - simple example using the PeasyCam library, demonstrating how to add Processing libraries inside the
libsfolder. Drag or scroll with the mouse to control the camera.
- TextureCylinder - load an image and render it on a cylinder and quad, demonstrating use of the
datafolder in the build. Ported from https://github.com/processing/processing-docs/tree/master/content/examples/Topics/Textures/TextureCylinder
Running the examples
All the example projects require Java 11+. Open the projects in your IDE, or use
./gradlew run. Building any of the projects will create a distributable application using the Gradle application plugin.
Neil C Smith, Codelerity Ltd.