RingGaugeRingsStyle

data class RingGaugeRingsStyle(val alpha: Float, val baseColor: Color, val colors: ImmutableList<Color>, val width: Dp, val spacing: Dp)(source)

Ring configuration for a RingGaugeChartStyle.

Constructors

Link copied to clipboard
constructor(alpha: Float, baseColor: Color, colors: ImmutableList<Color>, width: Dp, spacing: Dp)

Properties

Link copied to clipboard

The alpha value applied to rendered rings.

Link copied to clipboard

The base color used to generate shades when colors is empty.

Link copied to clipboard
val colors: ImmutableList<Color>

The colors the chart draws for rings, in value order. When empty, a shade is generated for every ring from baseColor. When set, its count must match the value count.

Link copied to clipboard
val spacing: Dp

The gap between neighbouring rings.

Link copied to clipboard
val width: Dp

The widest a ring is drawn. Rings get thinner when this many would not fit.

Functions

Link copied to clipboard
fun resolveColors(ringCount: Int): ImmutableList<Color>

Returns the default colors for ringCount rings, before alpha is applied: colors when set, or generated shades of baseColor when it is empty.