libp5x is a modularized fork of Processing used inside PraxisLIVE. Based on Processing v4, it fully supports Java 17+ and the Java module system, and uses LWJGL for OpenGL rendering.
This repository contains a number of examples ported from Processing to Java, using libp5x. They all use the Maven build system. The POM files may be used as templates for other projects. The examples themselves retain their existing copyright and license.
- 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
libs
folder. 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
data
folder in the build. Ported from https://github.com/processing/processing-docs/tree/master/content/examples/Topics/Textures/TextureCylinder
All the example projects require Java 17+ is available.
To run each examples, use ./mvnw package exec:exec
(Linux / macOS) or .\mvnw.cmd package exec:exec
(Windows)
from a terminal in the project folder.
Or open the projects in your favourite IDE. If you're not sure, we recommend our own packages of Apache NetBeans, obviously!
Neil C Smith, Codelerity Ltd.