Add configuration option for script host to oliveProgram

This commit is contained in:
Edwin Jakobs
2020-05-18 15:25:54 +02:00
parent f18dced653
commit c64562999a
3 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import org.openrndr.Extension
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extensions.SingleScreenshot
import org.openrndr.extra.olive.OliveScriptHost
import org.openrndr.extra.olive.oliveProgram
import kotlin.math.cos
@@ -11,7 +12,7 @@ fun main() {
width = 1280
height = 720
}
oliveProgram {
oliveProgram(scriptHost = OliveScriptHost.JSR223) {
extend {
drawer.clear(ColorRGBa.GRAY)
drawer.fill = ColorRGBa.WHITE