[orx-shapes] Fix Tunni demos

This commit is contained in:
Edwin Jakobs
2024-01-18 07:24:54 +01:00
parent 1e0630483e
commit 77e06cdb99
5 changed files with 14 additions and 13 deletions

View File

@@ -1,5 +1,3 @@
package tunni
import org.openrndr.application
import org.openrndr.color.ColorRGBa
import org.openrndr.extra.shapes.tunni.tunniLine
@@ -19,7 +17,6 @@ fun main() {
drawer.fill = null
for (s in c.segments) {
val tp = s.tunniPoint
println(tp)
drawer.circle(tp, 10.0)
val sc = s.cubic
drawer.lineSegment(sc.control[0], sc.control[1])
@@ -27,9 +24,7 @@ fun main() {
drawer.segment(s.withTunniLine(s.tunniLine.position(0.5) + s.tunniLine.normal * cos(seconds) * 40.0))
}
drawer.contour(c)
}
}
}