aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdwin Jakobs <edwin@rndr.studio>2020-05-06 19:13:30 +0200
committerEdwin Jakobs <edwin@rndr.studio>2020-05-06 19:13:30 +0200
commit5151b7af89e7e77f62d0b0485dec376b170d9642 (patch)
tree560dba7d4d3939948a535a779b44f38a006d5a42 /src
parent38254b084d7711e7e9c2e4b77def518947b8f56d (diff)
downloadart-playground-openrndr-5151b7af89e7e77f62d0b0485dec376b170d9642.tar.gz
art-playground-openrndr-5151b7af89e7e77f62d0b0485dec376b170d9642.zip
Upgrade OPENRNDR, change TemplateLiveProgram.kt
Diffstat (limited to '')
-rw-r--r--src/main/kotlin/TemplateLiveProgram.kt16
1 files changed, 8 insertions, 8 deletions
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<Program>())
+ oliveProgram {
+ extend {
+ drawer.clear(ColorRGBa.PINK)
+ }
}
} \ No newline at end of file