Fix color scheme rotation
The first number in a Pair instance, the hue range to check against, was being used as the rotation value. The second number in the Pair instance should have been used. Bug: 213314628 Test: Manual inspection at runtime Change-Id: I9002522853f8a6cc6d38537f14fed04e256aa340
This commit is contained in:
@@ -49,7 +49,7 @@ internal interface Hue {
|
||||
val previousHue = hueAndRotations[previousIndex].first
|
||||
if (ColorScheme.angleIsBetween(sourceHue, thisHue, previousHue)) {
|
||||
return ColorScheme.wrapDegreesDouble(sourceHue.toDouble() +
|
||||
hueAndRotations[previousIndex].first)
|
||||
hueAndRotations[previousIndex].second)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user