From d4cff66261995fc02de221f8861d9eac19c51b6a Mon Sep 17 00:00:00 2001 From: Moritz Ruth Date: Sat, 8 Jul 2023 10:04:30 +0200 Subject: [PATCH] commit #53 --- .../kotlin/de/moritzruth/lampenfieber/Test.kt | 16 +++++++++++++--- .../de/moritzruth/lampenfieber/act/Fourth.kt | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/de/moritzruth/lampenfieber/Test.kt b/src/main/kotlin/de/moritzruth/lampenfieber/Test.kt index 129db8d..4654a8f 100644 --- a/src/main/kotlin/de/moritzruth/lampenfieber/Test.kt +++ b/src/main/kotlin/de/moritzruth/lampenfieber/Test.kt @@ -8,13 +8,17 @@ import de.moritzruth.theaterdsl.value.percent import kotlinx.coroutines.coroutineScope import kotlinx.coroutines.delay import kotlinx.coroutines.isActive +import kotlinx.coroutines.launch import kotlin.math.roundToLong import kotlin.system.measureTimeMillis +import kotlin.time.Duration.Companion.seconds suspend fun main() = coroutineScope { EnttecOpenDmxUsb.start() - test() + launch { + test() + } while (isActive) { val took = measureTimeMillis { @@ -35,7 +39,13 @@ suspend fun main() = coroutineScope { suspend fun test() = coroutineScope { Washs.both { - it.brightness.static(100.percent) - it.pointAtCeiling() + it.brightness.static(50.percent) + it.pointAtGuests() + } + + delay(4000) + + Washs.both { + it.pointAtCeiling(5.seconds) } } \ No newline at end of file diff --git a/src/main/kotlin/de/moritzruth/lampenfieber/act/Fourth.kt b/src/main/kotlin/de/moritzruth/lampenfieber/act/Fourth.kt index 6a3dc7c..d8a1eba 100644 --- a/src/main/kotlin/de/moritzruth/lampenfieber/act/Fourth.kt +++ b/src/main/kotlin/de/moritzruth/lampenfieber/act/Fourth.kt @@ -327,7 +327,7 @@ fun ShowBuilderContext.fourthAct() = act("Vierter Akt") { onRun { spotRight.brightness.fade(50.percent, 10.seconds) - bar.color.static(Color(300.degrees, 70.percent)) // TODO: Sättigung testen + bar.color.static(Color(300.degrees, 70.percent)) bar.brightness.fade(10.percent, 10.seconds) Washs.both.forEach {