Upgrade OPENRNDR, change TemplateLiveProgram.kt
This commit is contained in:
@@ -52,10 +52,10 @@ val openrndrFeatures = setOf(
|
|||||||
|
|
||||||
/* Which version of OPENRNDR, ORX and Panel should be used? */
|
/* Which version of OPENRNDR, ORX and Panel should be used? */
|
||||||
val openrndrUseSnapshot = false
|
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 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">
|
//<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")
|
val supportedPlatforms = setOf("windows", "macos", "linux-x64", "linux-arm64")
|
||||||
@@ -92,7 +92,7 @@ val kotlinVersion = "1.3.72"
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
kotlin("jvm") version("1.3.71")
|
kotlin("jvm") version("1.3.72")
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
import org.openrndr.Program
|
|
||||||
import org.openrndr.application
|
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.
|
* 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
|
* It uses oliveProgram {} instead of program {}. All code inside the
|
||||||
* instructions on using the live coding environment.
|
* oliveProgram {} can be changed while the program is running.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
fun main() = application {
|
fun main() = application {
|
||||||
@@ -16,7 +14,9 @@ fun main() = application {
|
|||||||
width = 800
|
width = 800
|
||||||
height = 800
|
height = 800
|
||||||
}
|
}
|
||||||
program {
|
oliveProgram {
|
||||||
extend(Olive<Program>())
|
extend {
|
||||||
|
drawer.clear(ColorRGBa.PINK)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user