From 5151b7af89e7e77f62d0b0485dec376b170d9642 Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Wed, 6 May 2020 19:13:30 +0200 Subject: Upgrade OPENRNDR, change TemplateLiveProgram.kt --- src/main/kotlin/TemplateLiveProgram.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main/kotlin') diff --git a/src/main/kotlin/TemplateLiveProgram.kt b/src/main/kotlin/TemplateLiveProgram.kt index 38e8bbc..314bc54 100644 --- a/src/main/kotlin/TemplateLiveProgram.kt +++ b/src/main/kotlin/TemplateLiveProgram.kt @@ -1,14 +1,12 @@ -import org.openrndr.Program import org.openrndr.application -import org.openrndr.extra.olive.Olive +import org.openrndr.color.ColorRGBa +import org.openrndr.extra.olive.oliveProgram /** * This is a template for a live program. - * The first you will run this program it will create a script file at src/main/kotlin/live.kts - * This script file can be modified while the program is running. * - * Please refer to https://guide.openrndr.org/#/10_OPENRNDR_Extras/C03_Live_coding for more - * instructions on using the live coding environment. + * It uses oliveProgram {} instead of program {}. All code inside the + * oliveProgram {} can be changed while the program is running. */ fun main() = application { @@ -16,7 +14,9 @@ fun main() = application { width = 800 height = 800 } - program { - extend(Olive()) + oliveProgram { + extend { + drawer.clear(ColorRGBa.PINK) + } } } \ No newline at end of file -- cgit v1.3.1