From df928f9409952aabb0f1ec16e57ae81ad9531e62 Mon Sep 17 00:00:00 2001 From: Rein van der Woerd Date: Fri, 3 Apr 2020 12:26:46 +0200 Subject: [PATCH] Added orx-syphon example for a receiving frames from a specific server --- orx-syphon/README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/orx-syphon/README.md b/orx-syphon/README.md index afbc93cf..444071b3 100644 --- a/orx-syphon/README.md +++ b/orx-syphon/README.md @@ -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 { } } } -``` \ No newline at end of file +``` + +#### 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) + } + } +} +```