klyn.gui.windows.Painter.fillPolygon
method
public fillPolygon(points as ArrayList<Int>) as Void:
Description

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])