aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle.kts6
-rw-r--r--src/main/kotlin/TemplateLiveProgram.kt16
2 files changed, 11 insertions, 11 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index cef6318..68e0829 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -52,10 +52,10 @@ val openrndrFeatures = setOf(
/* Which version of OPENRNDR, ORX and Panel should be used? */
val openrndrUseSnapshot = false
-val openrndrVersion = if (openrndrUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.42-rc.2"
+val openrndrVersion = if (openrndrUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.42-rc.5"
val orxUseSnapshot = false
-val orxVersion = if (orxUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.51-rc.3"
+val orxVersion = if (orxUseSnapshot) "0.4.0-SNAPSHOT" else "0.3.51-rc.4"
//<editor-fold desc="This is code for OPENRNDR, no need to edit this .. most of the times">
val supportedPlatforms = setOf("windows", "macos", "linux-x64", "linux-arm64")
@@ -92,7 +92,7 @@ val kotlinVersion = "1.3.72"
plugins {
java
- kotlin("jvm") version("1.3.71")
+ kotlin("jvm") version("1.3.72")
}
repositories {
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