diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-10-25 14:52:36 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-10-25 14:52:36 +0530 |
| commit | d41559270e57752cc16f97f7e820f3781ed03a49 (patch) | |
| tree | e92d55544f78966bd3283b39269a34fa61fb57d8 /src/main/kotlin/phenax | |
| parent | 5e51938952b5275debce06e5cee4a5f71eacaeb1 (diff) | |
| download | art-playground-openrndr-d41559270e57752cc16f97f7e820f3781ed03a49.tar.gz art-playground-openrndr-d41559270e57752cc16f97f7e820f3781ed03a49.zip | |
Ice cream sandwichmaster
Diffstat (limited to 'src/main/kotlin/phenax')
| -rw-r--r-- | src/main/kotlin/phenax/utils/program.kt | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |
