aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorEdwin Jakobs <edwin@rndr.studio>2020-01-28 00:12:33 +0100
committerEdwin Jakobs <edwin@rndr.studio>2020-01-28 00:12:33 +0100
commit89fce80affc76bd19acd9ec03c62475c7c2b03ac (patch)
tree0c10e4ce4e6e56361d09e0304540b328c41e60d9 /src/main
parent0a478a98a6fff455094321d8abc1e07241484a8f (diff)
downloadart-playground-openrndr-89fce80affc76bd19acd9ec03c62475c7c2b03ac.tar.gz
art-playground-openrndr-89fce80affc76bd19acd9ec03c62475c7c2b03ac.zip
Upgrade to OPENRNDR 0.3.38, add TemplateLiveProgram.kt
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