19 lines
443 B
Kotlin
19 lines
443 B
Kotlin
package primitives
|
|
|
|
import org.openrndr.application
|
|
import org.openrndr.extra.shapes.primitives.invert
|
|
import org.openrndr.math.Vector2
|
|
import org.openrndr.shape.Circle
|
|
|
|
fun main() = application {
|
|
configure {
|
|
width = 720
|
|
height = 720
|
|
}
|
|
program {
|
|
extend {
|
|
val c = Circle(drawer.bounds.center + Vector2(1E-2, 1E-2), 100.0)
|
|
drawer.circle(c.invert(mouse.position),10.0)
|
|
}
|
|
}
|
|
} |