Browse Source

Upgrade OPENRNDR, change TemplateLiveProgram.kt

master
Edwin Jakobs 5 years ago
parent
commit
5151b7af89
  1. 6
      build.gradle.kts
  2. 16
      src/main/kotlin/TemplateLiveProgram.kt

6
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 {

16
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)
}
}
}
Loading…
Cancel
Save