Files
orx/openrndr-demos/src/demo/kotlin/DemoContour01.kt
2020-11-15 13:30:51 +01:00

19 lines
517 B
Kotlin

import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.shape.Circle
/**
* a simple demo that tests heavy stroke weights on tiny geometry
*
* This was made to assist in resolving https://github.com/openrndr/openrndr/issues/164
*/
fun main() = application {
program {
val c = Circle(200.0, 200.0, 10.0).contour
extend {
drawer.strokeWeight = mouse.position.y
drawer.stroke = ColorRGBa.PINK
drawer.contour(c)
}
}
}