harmonize

fun harmonize(designColor: Int, sourceColor: Int): Int

Blend the design color's HCT hue towards the key color's HCT hue, in a way that leaves the original color recognizable and recognizably shifted towards the key color.

Return

The design color with a hue shifted towards the system's color, a slightly warmer/cooler variant of the design color's hue.

Parameters

designColor

ARGB representation of an arbitrary color.

sourceColor

ARGB representation of the main theme color.


fun harmonize(designColor: Hct, sourceColor: Hct): Hct

Blend the design color's HCT hue towards the key color's HCT hue, in a way that leaves the original color recognizable and recognizably shifted towards the key color.

Return

The design color with a hue shifted towards the system's color, a slightly warmer/cooler variant of the design color's hue.

Parameters

designColor

HCT representation of an arbitrary color.

sourceColor

HCT representation of the main theme color.