aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/TemplateLiveProgram.kt
blob: 24625d3c94035d97ce14999adb37bdce524a753a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extra.olive.oliveProgram

/**
 *  This is a template for a live program.
 *
 *  It uses oliveProgram {} instead of program {}. All code inside the
 *  oliveProgram {} can be changed while the program is running.
 */

suspend fun main() = application {
    configure {
        width = 800
        height = 800
    }
    oliveProgram {
        extend {
            drawer.clear(ColorRGBa.PINK)
        }
    }
}