[openrndr-demos] Add rectangle batch demos

This commit is contained in:
Edwin Jakobs
2020-07-21 13:58:27 +02:00
parent b4908b3cd8
commit c6a883f6b9
6 changed files with 87 additions and 29 deletions

View 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)
}
}
}