[orx-shapes] Extend circle inversion functionalities and update demos

This commit is contained in:
Edwin Jakobs
2025-08-20 21:38:58 +02:00
parent e17644a247
commit 307b3fc282
3 changed files with 138 additions and 11 deletions

View File

@@ -25,7 +25,10 @@ fun main() = application {
drawer.clear(ColorRGBa.WHITE)
drawer.fill = ColorRGBa.BLACK
drawer.stroke = null
drawer.circle(mc.invertConformal(c))
val ci = mc.invertConformal(c)
when (ci) {
is Circle -> drawer.circle(ci)
}
break
}
}
@@ -39,7 +42,10 @@ fun main() = application {
for (i in 0 until 10) {
val c = Circle(i * width / 10.0 + width / 20.0, j * height / 10.0 + height / 20.0, 36.0)
if (p !in c) {
drawer.circle(mc.invertConformal(c))
val ci = mc.invertConformal(c)
when (ci) {
is Circle -> drawer.circle(ci)
}
}
}
}