diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-09-27 12:06:00 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-09-28 01:48:05 +0530 |
| commit | 5f41d4cded56121af66b18c232c7f557ab803f94 (patch) | |
| tree | b0b48b4e3b453f7786ba0e1a21c0b2301b06d895 /src/main/kotlin/vacation | |
| parent | aff909363f2fb647420105862432ab3e9d6ca1ed (diff) | |
| download | art-playground-openrndr-5f41d4cded56121af66b18c232c7f557ab803f94.tar.gz art-playground-openrndr-5f41d4cded56121af66b18c232c7f557ab803f94.zip | |
Add headless screenshot + fix scaling for antialiasing for vacation
Diffstat (limited to 'src/main/kotlin/vacation')
| -rw-r--r-- | src/main/kotlin/vacation/VacationProgram.kt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main/kotlin/vacation/VacationProgram.kt b/src/main/kotlin/vacation/VacationProgram.kt index 041c009..b4d9d12 100644 --- a/src/main/kotlin/vacation/VacationProgram.kt +++ b/src/main/kotlin/vacation/VacationProgram.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 { |
