drawStraightOrCubicLineForWave

fun DrawScope.drawStraightOrCubicLineForWave(pointsData: MutableList<Offset>, lineStyle: LineStyle, yPointOfOrigin: Float = 0.0f, wave: Wave): Path

DrawScope.drawStraightOrCubicLine extension method used for drawing a straight/cubic line for a given Point(x,y).

Parameters

pointsData

: List of points to be drawn on the canvas

lineStyle

: All styles related to the path are included in LineStyle.

yPointOfOrigin

: y position of x Axis

wave

: Wave data