KindlingColors

data class KindlingColors(val chart1: Color, val chart2: Color, val chart3: Color, val chart4: Color, val chart5: Color)(source)

Five-slot chart color palette consumed by every Kindling chart renderer.

Pass a custom instance to KindlingTheme to brand the entire chart library without touching individual composables:

KindlingTheme(
colors = KindlingColors(
chart1 = Color(0xFFFF6B35),
chart2 = Color(0xFF004E89),
chart3 = Color(0xFF1A936F),
chart4 = Color(0xFFC6AC8F),
chart5 = Color(0xFF5C4742),
)
) { … }

Constructors

Link copied to clipboard
constructor(chart1: Color, chart2: Color, chart3: Color, chart4: Color, chart5: Color)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Equivalent of --chart-1

Link copied to clipboard

Equivalent of --chart-2

Link copied to clipboard

Equivalent of --chart-3

Link copied to clipboard

Equivalent of --chart-4

Link copied to clipboard

Equivalent of --chart-5

Functions

Link copied to clipboard
fun atIndex(index: Int): Color

Returns the color at index mod 5, cycling through chart1…chart5.