drawLineLoops

fun drawLineLoops(    drawContext: DrawContext,     drawStyle: DrawStyle,     strips: List<List<Vector2>>,     corners: List<List<Boolean>>,     fringeWidth: Double = 1.0)(source)

Draws a series of closed line loops with the specified drawing context and style.

This function processes the input line loops, applies optional corner smoothing or sharpness, and renders them using the provided drawing context and style configurations.

Parameters

drawContext

The drawing context containing transformation matrices and additional parameters needed for rendering.

drawStyle

The style to apply for the stroke, including attributes such as stroke color, weight, and line caps.

strips

A list of line loops where each loop is represented as a list of 2D points (Vector2), forming the vertices of the closed line path.

corners

A list of boolean lists specifying the corner type at each corresponding vertex in the line loop. Use true for smooth corners and false for sharp corners.

fringeWidth

The additional line fringe width added for anti-aliasing or rendering enhancement. Defaults to 1.0.


fun drawLineLoops(    drawContext: DrawContext,     drawStyle: DrawStyle,     strips: List<List<Vector2>>,     corners: List<List<Boolean>>,     weights: List<Double>,     fringeWidth: Double = 1.0)(source)

Draws a series of closed line loops with the specified drawing context, style, and parameters.

This function processes the input line loops, applies optional corner smoothing or sharpness, and renders them using the provided drawing context and style configurations.

Parameters

drawContext

The drawing context containing transformation matrices and additional parameters needed for rendering.

drawStyle

The style to apply for the stroke, including attributes such as stroke color, weight, and line caps.

strips

A list of line loops where each loop is represented as a list of 2D points (Vector2), forming the vertices of the closed line path.

corners

A list of boolean lists specifying the corner type at each corresponding vertex in the line loop. Use true for smooth corners and false for sharp corners.

weights

A list of double values representing the stroke width for each respective line loop.

fringeWidth

The additional line fringe width added for anti-aliasing or rendering enhancement. Defaults to 1.0.