lineSegments

fun lineSegments(segments: List<Vector2>)(source)
@JvmName(name = "lineSegments3d")
fun lineSegments(segments: List<Vector3>, weights: List<Double>, colors: List<ColorRGBa>)(source)
@JvmName(name = "lineSegmentsFromLineSegmentList")
fun lineSegments(segments: List<LineSegment>)(source)


fun lineSegments(segments: List<Vector2>, weights: List<Double>)(source)

Draws a series of line segments with specified weights

Parameters

segments

A list of Vector2 instances representing the points of the line segments. Each consecutive pair of points defines a single line segment.

weights

A list of Double values representing the weights (thickness) of each line segment.


@JvmName(name = "lineSegments3d")
fun lineSegments(segments: List<Vector3>)(source)

Draws line segments using the specified list of 3D vectors.

Parameters

segments

A list of Vector3 objects representing the line segments to be drawn.


@JvmName(name = "lineSegments3d")
fun lineSegments(segments: List<Vector3>, weights: List<Double>)(source)

Draws a series of line segments based on the provided 3D vectors and weights.

Parameters

segments

A list of Vector3 objects representing the points that define the line segments.

weights

A list of Double values representing the weights for each line segment, influencing their appearance.