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 | 43b878eef2ba2ae25eeed673be09927a6c357b1e (patch) | |
| tree | b555166271044ad89193c4744b941d7b96952aa3 /src/main/kotlin/vacation/VacationProgram.kt | |
| parent | f9dafa2cb652649935a845498003831e9fa18993 (diff) | |
| download | art-playground-openrndr-43b878eef2ba2ae25eeed673be09927a6c357b1e.tar.gz art-playground-openrndr-43b878eef2ba2ae25eeed673be09927a6c357b1e.zip | |
Add headless screenshot + fix scaling for antialiasing for vacation
Diffstat (limited to '')
| -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 { |
