Add Olive.scriptLoaded event
This commit is contained in:
14
orx-olive/src/demo/kotlin/demo-olive-01.kts
Normal file
14
orx-olive/src/demo/kotlin/demo-olive-01.kts
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user