Skip to content

Commit

Permalink
Fix "longer" hue interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Feb 6, 2023
1 parent 52bec44 commit b5cc637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/angles.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export function adjust (arc, angles) {
else if (arc === "longer") {
if (-180 < angleDiff && angleDiff < 180) {
if (angleDiff > 0) {
a2 += 360;
a1 += 360;
}
else {
a1 += 360;
a2 += 360;
}
}
}
Expand Down

0 comments on commit b5cc637

Please sign in to comment.