16 lines
386 B
Kotlin
16 lines
386 B
Kotlin
// 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)
|
|
}
|
|
}
|
|
} |