ORX (OPENRNDR Extras)
The ORX project is a library of tools that can be used in OPENRNDR based programs. ORX contains implementations of datastructures, algorithms and utilities for (mostly) computational graphics. You can find the ORX source code and additional documentation in the ORX repository
Using ORX
Using the OPENRNDR extras is a matter of adding a Maven repository and selected dependencies to your Gradle project.
The openrndr-template project makes this simple as the repositories are already set up and one only has to
- Open the
build.gradle.ktsfile. - Find the
dependencies { ... }block. - Add one line per desired dependency, in this format:
implementation(orx.marching.squares). Notice how the dashes fromorx-marching-squaresare converted to periods. Tip: once you typeorx.the IDE autocomplete should show you the available extensions. - Save
build.gradle.kts. - Reimport Gradle projects: if using IDEA choose 🔄 Sync All Gradle Projects from the Gradle panel.
Bundles
The build.gradle.kts makes use of dependency bundles, for instance orx.bundles.basic. These bundles are defined under orx-module-catalog in orx and openrndr. At the time of writing, the basic orx bundle includes the following: orx-camera, orx-color, orx-composition, orx-compositor, orx-fx, orx-image-fit, orx-panel, orx-video-profiles, orx-math, orx-mesh-generators, orx-no-clear, orx-noise, orx-shade-styles, orx-shader-phrases, orx-shapes, orx-svg, orx-text-on-contour, orx-text-writer