Skip to content

Commit

Permalink
Fix "longer" hue interpolation (#281)
Browse files Browse the repository at this point in the history
Fixes #277
Fixes #156
  • Loading branch information
facelessuser authored Feb 6, 2023
1 parent 52bec44 commit c93c1ff
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 c93c1ff

Please sign in to comment.