toDynamicScheme
fun Color.toDynamicScheme(isDark: Boolean, style: PaletteStyle, contrast: Contrast = Contrast.Default): DynamicScheme
Generates a DynamicScheme based on the specified Color and configuration parameters.
This function creates a DynamicScheme that adjusts to the provided color, mode (dark or light), style, and contrast level.
Return
The DynamicScheme generated according to the specified parameters.
Parameters
isDark
A boolean flag indicating whether the scheme should be dark (true
) or light (false
).
style
The style of the scheme. Refer to PaletteStyle for available options.
contrast
The contrast level to apply to the scheme. Defaults to Contrast.Default.