Files
orx/orx-timer/src/demo/kotlin/DemoTimeOut01.kt
2021-06-22 11:08:07 +02:00

16 lines
453 B
Kotlin

import org.openrndr.application
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.timer.timeOut
suspend fun main() = application {
program {
if (System.getProperty("takeScreenshot") == "true") {
extend(SingleScreenshot()) {
this.outputFile = System.getProperty("screenshotPath")
}
}
timeOut(2.0) {
println("hello there $seconds" )
}
}
}