ToneDeltaPair

constructor(roleA: DynamicColor, roleB: DynamicColor, delta: Double, polarity: TonePolarity, stayTogether: Boolean)

Parameters

roleA

The first role in a pair.

roleB

The second role in a pair.

delta

Required difference between tones. Absolute value, negative values have undefined behavior.

polarity

The relative relation between tones of roleA and roleB, as described above.

stayTogether

Whether these two roles should stay on the same side of the "awkward zone" (T50-59). This is necessary for certain cases where one role has two backgrounds.