harmonizeWithPrimary

fun ColorScheme.harmonizeWithPrimary(color: Color, matchSaturation: Boolean = false): Color

Returns the Color of the given color harmonized with the ColorScheme.primary.

If you want to adjust the saturation of color to match the saturation of ColorScheme.primary, set matchSaturation to true.

Return

Color harmonized color

Parameters

color

Color to harmonize with the primary color.