aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/org
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-10-11 17:27:08 +0530
committerAkshay Nair <phenax5@gmail.com>2026-10-12 20:05:20 +0530
commit49b6b0c9d7de093fc63af376afe5d03f1690995a (patch)
tree6d4e0a203351ae996adc68301fe7f946ea655e26 /src/main/kotlin/org
parent256a42f2dbbb75227441c53f7259a6672d392659 (diff)
downloadart-playground-openrndr-49b6b0c9d7de093fc63af376afe5d03f1690995a.tar.gz
art-playground-openrndr-49b6b0c9d7de093fc63af376afe5d03f1690995a.zip
More roll credits details
Diffstat (limited to 'src/main/kotlin/org')
-rw-r--r--src/main/kotlin/org/openrndr/Preload.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/kotlin/org/openrndr/Preload.kt b/src/main/kotlin/org/openrndr/Preload.kt
index e6a9688..42bab94 100644
--- a/src/main/kotlin/org/openrndr/Preload.kt
+++ b/src/main/kotlin/org/openrndr/Preload.kt
@@ -1,9 +1,9 @@
package org.openrndr
import org.openrndr.draw.*
+import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.olive.*
import org.openrndr.ffmpeg.ScreenRecorder
-import phenax.extensions.HeadlessScreenshot
import phenax.utils.*
class Preload : ApplicationPreload() {
@@ -19,7 +19,11 @@ class Preload : ApplicationPreload() {
multisample = BufferMultisample.SampleCount(16)
}
} else if (screenshotEnabled) {
- program.extend(HeadlessScreenshot())
+ program.extend(SingleScreenshot()) {
+ outputFile = "screenshot/${program.name}.png"
+ async = false
+ quitAfterScreenshot = true
+ }
}
}
}