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`.
14 lines
339 B
Kotlin
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)
|
|
}
|
|
}
|
|
} |