[orx-shapes] Adjust circle center position in DemoCircleInversion01 to avoid impossible inversion

This commit is contained in:
Edwin Jakobs
2025-08-16 21:54:33 +02:00
parent c63c0c5844
commit e92f3c3ff9

View File

@@ -2,6 +2,7 @@ package primitives
import org.openrndr.application import org.openrndr.application
import org.openrndr.extra.shapes.primitives.invert import org.openrndr.extra.shapes.primitives.invert
import org.openrndr.math.Vector2
import org.openrndr.shape.Circle import org.openrndr.shape.Circle
fun main() = application { fun main() = application {
@@ -11,7 +12,7 @@ fun main() = application {
} }
program { program {
extend { extend {
val c = Circle(drawer.bounds.center, 100.0) val c = Circle(drawer.bounds.center + Vector2(1E-2, 1E-2), 100.0)
drawer.circle(c.invert(mouse.position),10.0) drawer.circle(c.invert(mouse.position),10.0)
} }
} }