Switch back to fun main()

This commit is contained in:
Edwin Jakobs
2021-08-30 17:18:54 +02:00
parent c5a95f8d17
commit 9a2f10f81d
187 changed files with 313 additions and 316 deletions

View File

@@ -2,7 +2,7 @@ import org.openrndr.application
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.timer.repeat
suspend fun main() = application {
fun main() = application {
program {
repeat(2.0) {
println("hello there $seconds" )

View File

@@ -8,7 +8,7 @@ import org.openrndr.extra.timer.repeat
* This demonstrates how to combine `repeat {}` with a postponed event to trigger drawing
*/
suspend fun main() = application {
fun main() = application {
program {
val event = Event<Any?>().postpone(true)
event.listen {

View File

@@ -2,7 +2,7 @@ import org.openrndr.application
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.timer.timeOut
suspend fun main() = application {
fun main() = application {
program {
if (System.getProperty("takeScreenshot") == "true") {
extend(SingleScreenshot()) {