public fillPolygon(points as ArrayList<Int>) as Void:
Fills a polygon described by alternating x, y coordinates.
At least three points are required. Invalid or incomplete coordinate lists are ignored by the native renderer.
painter.fillStyle = Color(255, 0, 0, 0.65) painter.fillPolygon([120, 20, 180, 80, 100, 90])