BarVisualizer

fun BarVisualizer(modifier: Modifier = Modifier, style: DrawStyle = Fill, brush: Brush = SolidColor(Color.Black), barWidth: Dp = 8.dp, minHeight: Float = 0.2f, maxHeight: Float = 1.0f, amplitudes: FloatArray, alphas: FloatArray? = null)

Draws bars evenly split across the width of the composable.

Parameters

amplitudes

Values of the bars, between 0.0f and 1.0f, where 1.0f represents the maximum height of the composable.

alphas

Alphas of the bars, between 0.0f and 1.0f. Defaults to 1.0f if null or not enough values are passed.