aboutsummaryrefslogtreecommitdiff
path: root/templates/glsl/kotlin/Program.kt
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-09-27 14:23:23 +0530
committerAkshay Nair <phenax5@gmail.com>2026-09-28 01:48:05 +0530
commitfb4ac197f4b7edd12258965fcfd4ff60c2c1ee73 (patch)
tree56b45dcdccf4ed2a67d92c45bbce79100876d565 /templates/glsl/kotlin/Program.kt
parent27dbc20252f3954b2a2cd2d5ea3a0dd9e570ba40 (diff)
downloadart-playground-openrndr-fb4ac197f4b7edd12258965fcfd4ff60c2c1ee73.tar.gz
art-playground-openrndr-fb4ac197f4b7edd12258965fcfd4ff60c2c1ee73.zip
More screenshots
Diffstat (limited to 'templates/glsl/kotlin/Program.kt')
-rw-r--r--templates/glsl/kotlin/Program.kt16
1 files changed, 12 insertions, 4 deletions
diff --git a/templates/glsl/kotlin/Program.kt b/templates/glsl/kotlin/Program.kt
index 3e436e8..08b74d2 100644
--- a/templates/glsl/kotlin/Program.kt
+++ b/templates/glsl/kotlin/Program.kt
@@ -10,10 +10,18 @@ import phenax.utils.*
fun main() = application {
recordDuration(5.seconds())
- configure {
- width = 640
- height = 480
- windowResizable = false
+ if (recordingEnabled || screenshotEnabled) {
+ configure {
+ width = 1920
+ height = 1080
+ windowResizable = false
+ }
+ } else {
+ configure {
+ width = 640
+ height = 360
+ windowResizable = false
+ }
}
oliveProgram {