Merge pull request #63 from reinvdwoerd/added-syphon-example

Added orx-syphon example for receiving frames from a specific server
This commit is contained in:
Edwin Jakobs
2020-04-03 19:57:36 +02:00
committed by GitHub

View File

@@ -68,6 +68,8 @@ fun main() = application {
```
### Syphon Client
#### Receiving frames from the default (or the only available) server
```kotlin
fun main() = application {
configure {
@@ -85,4 +87,26 @@ 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)
}
}
}
```