Upgrade to OPENRNDR 0.3.38, add TemplateLiveProgram.kt
This commit is contained in:
22
src/main/kotlin/TemplateLiveProgram.kt
Normal file
22
src/main/kotlin/TemplateLiveProgram.kt
Normal file
@@ -0,0 +1,22 @@
|
||||
import org.openrndr.Program
|
||||
import org.openrndr.application
|
||||
import org.openrndr.extra.olive.Olive
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
fun main() = application {
|
||||
configure {
|
||||
width = 800
|
||||
height = 800
|
||||
}
|
||||
program {
|
||||
extend(Olive<Program>())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user