Add Olive.scriptLoaded event

This commit is contained in:
Edwin Jakobs
2020-04-29 11:43:43 +02:00
parent 497061f0b3
commit f5d455eddf
4 changed files with 70 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
@file:Suppress("UNUSED_LAMBDA_EXPRESSION")
import org.openrndr.Program
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.*
{ program: Program ->
program.apply {
extend {
drawer.background(ColorRGBa.GRAY)
drawer.fill = ColorRGBa.PINK
drawer.circle(width/2.0, height/2.0 ,200.0)
}
}
}