segments
fun segments(baseColor: Color = StyleDefaults.seriesColor, alpha: Float = StyleDefaults.seriesAlpha, colors: List<Color> = emptyList(), width: Dp = StyleDefaults.segmentedRingGaugeWidth, spacing: Dp = StyleDefaults.segmentedRingGaugeSpacing, cornerRadius: Dp = StyleDefaults.segmentedRingGaugeCornerRadius, startPosition: SegmentedRingGaugeStartPosition = SegmentedRingGaugeStartPosition.TopLeft, direction: SegmentedRingGaugeDirection = SegmentedRingGaugeDirection.CounterClockwise): SegmentedRingGaugeSegmentsStyle(source)
Returns the colored-segment configuration for a capacity ring.
Parameters
width
The maximum thickness shared by the segments and the remaining-capacity track. It shrinks when needed to preserve the center hole.
spacing
The physical space between neighbouring segments.
corner Radius
The corner radius of every annular segment.
start Position
The boundary before the first segment.
direction
The direction in which the segments are placed from startPosition.