Michael Sigl
02/11/2021, 4:50 PMDeactivated User
02/12/2021, 6:37 AMMichael Sigl
02/12/2021, 2:47 PMDeactivated User
02/12/2021, 2:54 PMMichael Sigl
02/12/2021, 3:21 PMMichael Sigl
02/12/2021, 3:22 PMDeactivated User
02/12/2021, 8:06 PMDeactivated User
02/12/2021, 8:18 PMfun drawPolygon(to: Container, path: Array<Vec2>): Graphics {
return to.sgraphics {
if (path.isNotEmpty()) {
fill(Colors.YELLOW) {
moveTo(path[0])
for (i in 1 until path.size) {
lineTo(path[i])
}
close()
}
}
}
}
Deactivated User
02/12/2021, 8:26 PMfun drawPolygon(to: Container, path: Array<Vec2>): Graphics {
return to.sgraphics {
if (path.isNotEmpty()) {
fill(Colors.YELLOW) {
polygon(path)
}
}
}
}
Michael Sigl
02/12/2021, 9:18 PM