Files
orx/orx-jvm/orx-processing/src/demo/kotlin/DemoPShape01.kt
Edwin Jakobs 498f776493 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`.
2025-04-15 22:42:46 +02:00

14 lines
339 B
Kotlin

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)
}
}
}