aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/time/TimeProgram.kt
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-10-05 20:38:25 +0530
committerAkshay Nair <phenax5@gmail.com>2026-10-05 20:38:25 +0530
commit93fb8e525de1221eef28e0af23aafe4b9d94a9cf (patch)
treeb186afc8c81ea70b969e79bc2d8e2780bff51ef2 /src/main/kotlin/time/TimeProgram.kt
parent336cdd21267a1f6fe3619b68d8ec68f532e3ea66 (diff)
downloadart-playground-openrndr-93fb8e525de1221eef28e0af23aafe4b9d94a9cf.tar.gz
art-playground-openrndr-93fb8e525de1221eef28e0af23aafe4b9d94a9cf.zip
Remove hour/minute hands + redo antialiasing without supersampling
Diffstat (limited to '')
-rw-r--r--src/main/kotlin/time/TimeProgram.kt5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/kotlin/time/TimeProgram.kt b/src/main/kotlin/time/TimeProgram.kt
index 0f5db32..e510aa9 100644
--- a/src/main/kotlin/time/TimeProgram.kt
+++ b/src/main/kotlin/time/TimeProgram.kt
@@ -8,9 +8,8 @@ import org.openrndr.math.*
import phenax.utils.*
fun main() = application {
- recordDuration(5.seconds())
+ recordDuration(20.seconds())
- // TODO: remove hardcode
if (captureEnabled) {
configure {
width = 1920
@@ -59,11 +58,9 @@ fun main() = application {
if (recordingEnabled) {
cs.uniform("hours", 10.0)
cs.uniform("minutes", 10.0 + seconds / 60.0)
- cs.uniform("seconds", time.getSecond().toFloat())
} else {
cs.uniform("hours", time.getHour().toFloat())
cs.uniform("minutes", time.getMinute().toFloat())
- cs.uniform("seconds", time.getSecond().toFloat())
}
cs.uniform("time", seconds)