Upgrade OPENRNDR, change TemplateLiveProgram.kt

This commit is contained in:
Edwin Jakobs
2020-05-06 19:13:30 +02:00
parent 38254b084d
commit 5151b7af89
2 changed files with 11 additions and 11 deletions

View File

@@ -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)
}
}
}