commit | 62918fe10be750bf05bd26f865321692c2ee9ef0 | [log] [tgz] |
---|---|---|
author | James O'Leary <jamesoleary@google.com> | Tue Nov 09 11:08:48 2021 -0500 |
committer | James O'Leary <jamesoleary@google.com> | Tue Nov 09 11:08:48 2021 -0500 |
tree | 249730d72fdcf09d7a4fedf51c1d9da5ef0985a9 | |
parent | 62924f1213ddf532b4837fd5a425c9a5b10b4d29 [diff] |
Fix error computing tertiary hue After adding 60 degrees to the hue, the result needs to be normalized to 0 to 360. Code downstream of Shades.of does not perform the normalization, so the resulting color will be the result of undefined behavior. Test: `atest ColorSchemeTest`, newly added testTertiaryHueWrapsProperly passes. Bug: 204463343 Change-Id: I93168c98ba64fb865888469220571dc6d437105d