Marcin Wisniowski
05/17/2024, 11:15 AMval path = Path().apply {
moveTo(polygon[0].x, polygon[0].y)
polygon.drop(1).forEach { point -> lineTo(point.x, point.y) }
close()
}
I have this, but it feels very overcomplicated for what it is, I'd expect a constructor that takes a list of points.romainguy
05/17/2024, 2:45 PMMarcin Wisniowski
05/17/2024, 2:51 PM