Line

data class Line(val strokeWidth: Dp = 2.dp, val smoothing: Float = 0.5f, val cap: StrokeCap = StrokeCap.Round) : WaveformStyle

Smooth connected line visualization.

Renders amplitude values as a continuous line with optional Bezier smoothing.

Parameters

strokeWidth

Width of the line

smoothing

Bezier curve smoothing factor (0 = sharp corners, 1 = maximum smoothing)

cap

Stroke cap style for line ends

Constructors

Link copied to clipboard
constructor(strokeWidth: Dp = 2.dp, smoothing: Float = 0.5f, cap: StrokeCap = StrokeCap.Round)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard