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:
14
orx-jvm/orx-processing/src/demo/kotlin/DemoPShape01.kt
Normal file
14
orx-jvm/orx-processing/src/demo/kotlin/DemoPShape01.kt
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user