aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/phenax/utils
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-08-30 22:41:25 +0530
committerAkshay Nair <phenax5@gmail.com>2026-08-30 22:41:28 +0530
commitfb97d03b63468968045c8c53e143fe814efa9929 (patch)
tree7120bdc0157fa9340a073fb417de31f53a68b9f6 /src/main/kotlin/phenax/utils
parentf1f31ac3c1ae12ff6928e3e4a68a913ff82df81f (diff)
downloadart-playground-openrndr-fb97d03b63468968045c8c53e143fe814efa9929.tar.gz
art-playground-openrndr-fb97d03b63468968045c8c53e143fe814efa9929.zip
Development setup + toggling recording
Diffstat (limited to '')
-rw-r--r--src/main/kotlin/phenax/utils/program.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/kotlin/phenax/utils/program.kt b/src/main/kotlin/phenax/utils/program.kt
new file mode 100644
index 0000000..2d3e04b
--- /dev/null
+++ b/src/main/kotlin/phenax/utils/program.kt
@@ -0,0 +1,9 @@
+package phenax.utils
+
+fun recordDuration(durationSeconds: Int) {
+ System.setProperty("phenax.record.frameCount", (60 * durationSeconds).toString())
+}
+
+fun recordDuration(): Int? = System.getProperty("phenax.record.frameCount")?.toIntOrNull()
+
+fun recordingEnabled(): Boolean = System.getenv("RECORD") != null