rings

fun rings(baseColor: Color = StyleDefaults.seriesColor, alpha: Float = StyleDefaults.seriesAlpha, colors: List<Color> = emptyList(), width: Dp = StyleDefaults.ringGaugeWidth, spacing: Dp = StyleDefaults.ringGaugeSpacing): RingGaugeRingsStyle(source)

Returns a RingGaugeRingsStyle with the provided parameters or their default values.

Parameters

baseColor

The base color used to generate shades when colors is empty. Defaults to the primary color of the MaterialTheme.

alpha

The alpha value applied to rendered rings. Defaults to 1f.

colors

The colors to draw rings in, in value order. Empty by default, which draws a generated shade per ring. When set, the count must match the value count.

width

The widest a ring is drawn. Defaults to 24.dp.

spacing

The gap between neighbouring rings. Defaults to 4.dp.