[openrndr-demos] Add rectangle batch demos
This commit is contained in:
16
openrndr-demos/src/demo/kotlin/DrawerRectangleBatch01.kt
Normal file
16
openrndr-demos/src/demo/kotlin/DrawerRectangleBatch01.kt
Normal file
@@ -0,0 +1,16 @@
|
||||
// A single rectangle
|
||||
|
||||
import org.openrndr.application
|
||||
import org.openrndr.color.ColorRGBa
|
||||
|
||||
fun main() = application {
|
||||
program {
|
||||
extend {
|
||||
drawer.clear(ColorRGBa.GRAY)
|
||||
drawer.fill = ColorRGBa.PINK
|
||||
drawer.stroke = ColorRGBa.WHITE
|
||||
drawer.strokeWeight = 2.0
|
||||
drawer.rectangle(100.0, 100.0, 50.0, 50.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user