diff options
Diffstat (limited to 'src/main/kotlin/TemplateLiveProgram.kt')
| -rw-r--r-- | src/main/kotlin/TemplateLiveProgram.kt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/kotlin/TemplateLiveProgram.kt b/src/main/kotlin/TemplateLiveProgram.kt index 38e8bbc..314bc54 100644 --- a/src/main/kotlin/TemplateLiveProgram.kt +++ b/src/main/kotlin/TemplateLiveProgram.kt @@ -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) + } } }
\ No newline at end of file |
