Upgrade to OPENRNDR 0.4 snapshot
This commit is contained in:
22
orx-jvm/orx-syphon/src/test/kotlin/ServerExample.kt
Normal file
22
orx-jvm/orx-syphon/src/test/kotlin/ServerExample.kt
Normal file
@@ -0,0 +1,22 @@
|
||||
import org.openrndr.application
|
||||
import org.openrndr.color.ColorRGBa
|
||||
import org.openrndr.extra.syphon.SyphonServer
|
||||
import kotlin.math.*
|
||||
|
||||
|
||||
suspend fun main() = application {
|
||||
configure {
|
||||
width = 1000
|
||||
height = 1000
|
||||
}
|
||||
|
||||
program {
|
||||
extend(SyphonServer("Test"))
|
||||
|
||||
extend {
|
||||
drawer.clear(ColorRGBa.PINK)
|
||||
drawer.fill = ColorRGBa.WHITE
|
||||
drawer.circle(drawer.bounds.center, abs(cos(seconds)) * height * 0.5)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user