[orx-marching-squares] Change findContours to return List<ShapeContour>
This commit is contained in:
@@ -14,8 +14,9 @@ fun main() {
|
||||
drawer.clear(ColorRGBa.BLACK)
|
||||
drawer.stroke = ColorRGBa.PINK
|
||||
fun f(v: Vector2) = v.distanceTo(drawer.bounds.center) - 200.0
|
||||
val segments = findContours(::f, drawer.bounds, 16.0)
|
||||
drawer.lineSegments(segments)
|
||||
val contours = findContours(::f, drawer.bounds, 16.0)
|
||||
drawer.fill = null
|
||||
drawer.contours(contours)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user