drawLineStrips

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

Draws a series of connected line strips with the specified drawing context and style.

The method processes input line strips with optional corner smoothing or bluntness and renders them using the provided drawing context and style parameters.

Parameters

drawContext

The drawing context containing transformation matrices and additional parameters necessary to configure a rendering shader.

drawStyle

The style to apply for the stroke, including color, weight, and other line attributes.

strips

A list of line strips where each strip is a list of 2D points (Vector2) representing the vertices.

corners

A list of boolean lists indicating whether the corner at each corresponding vertex in the line strip should be smooth (true) or sharp (false).

fringeWidth

The additional width to add to the line edges for anti-aliasing or fringe rendering.


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

Draws a series of connected line strips with specified drawing context, style, and parameters.

This function processes input line strips, 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 strips where each strip is represented as a list of 2D points (Vector2), defining the vertices of the line path.

corners

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

weights

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

fringeWidth

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