QualityPolygonDrawer
Class responsible for high-quality polygon rendering with support for advanced features such as smooth fills, fringe widths, and customizable line joins.
This class utilizes an internal expansion drawer for generating and rendering polygon expansions based on the provided drawing context and styles. It supports both fill and stroke styles and can handle complex polygon loops with corner definitions.
Functions
Link copied to clipboard
fun drawPolygon(drawContext: DrawContext, drawStyle: DrawStyle, loops: List<List<Vector2>>, corners: List<List<Boolean>>, fringeWidth: Double)
Draws a polygon based on the specified parameters including loops, corner settings, and a fringe width for smoothing.