aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/TemplateLiveProgram.kt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main/kotlin/TemplateLiveProgram.kt22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/kotlin/TemplateLiveProgram.kt b/src/main/kotlin/TemplateLiveProgram.kt
new file mode 100644
index 0000000..38e8bbc
--- /dev/null
+++ b/src/main/kotlin/TemplateLiveProgram.kt
@@ -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>())
+ }
+} \ No newline at end of file