Added orx-syphon example for a receiving frames from a specific server

This commit is contained in:
Rein van der Woerd
2020-04-03 12:26:46 +02:00
parent 065bf71e51
commit df928f9409

View File

@@ -68,6 +68,8 @@ fun main() = application {
``` ```
### Syphon Client ### Syphon Client
#### Receiving frames from the default (or the only available) server
```kotlin ```kotlin
fun main() = application { fun main() = application {
configure { configure {
@@ -86,3 +88,25 @@ fun main() = application {
} }
} }
``` ```
#### Receiving frames from a specific server
```kotlin
fun main() = application {
configure {
// The maximum resolution supported by the free
// version of AESyphon
width = 1024
height = 768
}
program {
val syphonClient = SyphonClient("Adobe After Effects", "Live Preview")
extend(syphonClient)
extend {
drawer.background(ColorRGBa.BLACK)
drawer.image(syphonClient.buffer)
}
}
}
```