aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/time/TimeProgram.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/time/TimeProgram.kt')
-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)