harmonizeWithPrimary

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

Returns the Color that represents the given color harmonized with the primary color of this ColorScheme.

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

Return

The Color harmonized with the primary color of the scheme.

Parameters

color

The Color to harmonize with the primary color of the scheme.

matchSaturation

Whether to adjust the saturation of color to match that of ColorScheme.primary.