Returns a polygon
coordinates | List of coordinates of the vertices (that is, a list of Coord) |
Example:
set CANVAS_WIDTH to 1000 set CANVAS_HEIGHT to 1000 coords = [{442.20, 290.947}, {216, 485.719}, {128.38, 415.4233}, {210.76, 123.145}, {251.38, 459}] shape: Object = polygon(coords) shape.draw(1, 1000)