drawPolygon
fun drawPolygon( drawContext: DrawContext, drawStyle: DrawStyle, loops: List<List<Vector2>>, corners: List<List<Boolean>>, fringeWidth: Double)(source)
Draws a polygon based on the specified parameters including loops, corner settings, and a fringe width for smoothing.
Parameters
drawContext
The drawing context containing render configurations and transformation matrices.
drawStyle
The style settings including fill, stroke, and other visual customization options.
loops
A list of closed loop paths represented as lists of Vector2
points defining the edges of the polygon.
corners
A list of lists indicating corner flags for each point in the loops. Defines if a corner is convex or concave.
fringeWidth
A value specifying the fringe width for smoothing, primarily used in rendering filled polygons.