toDynamicScheme

fun Color.toDynamicScheme(isDark: Boolean, style: PaletteStyle, contrastLevel: Double = Contrast.Default.value): DynamicScheme

Generate a DynamicScheme based on the given Color.

Return

The generated DynamicScheme.

Parameters

isDark

Whether the scheme should be dark or light.

style

The style of the scheme, see PaletteStyle.

contrastLevel

The contrast level of the scheme.