[orx-timer] Fix deprecation of .postpone() in demo
This commit is contained in:
@@ -10,7 +10,8 @@ import org.openrndr.extra.timer.repeat
|
|||||||
|
|
||||||
fun main() = application {
|
fun main() = application {
|
||||||
program {
|
program {
|
||||||
val event = Event<Any?>().postpone(true)
|
val event = Event<Any?>()
|
||||||
|
event.postpone = true
|
||||||
event.listen {
|
event.listen {
|
||||||
drawer.circle(width / 2.0, height / 2.0, 200.0)
|
drawer.circle(width / 2.0, height / 2.0, 200.0)
|
||||||
}
|
}
|
||||||
@@ -30,4 +31,4 @@ fun main() = application {
|
|||||||
event.deliver()
|
event.deliver()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user