[orx-shapes] Adjust circle center position in DemoCircleInversion01 to avoid impossible inversion
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user