From d41559270e57752cc16f97f7e820f3781ed03a49 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 25 Oct 2026 14:52:36 +0530 Subject: Ice cream sandwich --- src/main/kotlin/phenax/utils/program.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/phenax') diff --git a/src/main/kotlin/phenax/utils/program.kt b/src/main/kotlin/phenax/utils/program.kt index fdb6197..821324a 100644 --- a/src/main/kotlin/phenax/utils/program.kt +++ b/src/main/kotlin/phenax/utils/program.kt @@ -11,11 +11,11 @@ import org.openrndr.extra.olive.oliveProgram as oliveProgramOriginal fun Number.seconds(): Number = this -fun recordDuration(millis: Number) { - System.setProperty("phenax.record.recordDuration", millis.toDouble().toString()) +fun recordDuration(seconds: Number) { + System.setProperty("phenax.record.recordDuration", seconds.toDouble().toString()) } -fun recordDuration(): Double = System.getProperty("phenax.record.recordDuration")?.toDoubleOrNull() ?: 5000.0 +fun recordDuration(): Double = System.getProperty("phenax.record.recordDuration")?.toDoubleOrNull() ?: 5.0 val recordingEnabled: Boolean by lazy { System.getenv("PHENAX_RECORD") != null } val screenshotEnabled: Boolean by lazy { System.getenv("PHENAX_SCREENSHOT") != null } -- cgit v1.3.1