Added orx-syphon example for a receiving frames from a specific server
This commit is contained in:
@@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user