Add orx-processing module for OPENRNDR and Processing interop

This commit introduces the `orx-processing` module, enabling seamless type conversions between OPENRNDR and Processing. It includes extensions for converting vectors and shapes, supporting interoperability through utilities like `PVector`, `PShape`, and `ShapeContour`.
This commit is contained in:
Edwin Jakobs
2025-04-15 22:41:57 +02:00
parent 3723623cad
commit 498f776493
6 changed files with 332 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import org.openrndr.application
import org.openrndr.extra.processing.PShape
import org.openrndr.extra.processing.toShape
fun main() = application {
program {
val c = drawer.bounds.offsetEdges(-100.0).shape
val ps = PShape(c)
val rc = ps.toShape()
extend {
drawer.shape(rc)
}
}
}