Skip to content

Commit

Permalink
changed 2nd h1p to h2p
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilzhigilei committed May 27, 2021
1 parent 36a08bf commit cef8158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Colour.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class Colour {
h2p = h2p + 360;
}

const avghp = Math.abs(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h1p) / 2;
const avghp = Math.abs(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;

const T = 1 - 0.17 * Math.cos(Math.deg2rad(avghp - 30)) + 0.24 * Math.cos(Math.deg2rad(2 * avghp)) + 0.32 * Math.cos(Math.deg2rad(3 * avghp + 6)) - 0.2 * Math.cos(Math.deg2rad(4 * avghp - 63));

Expand Down

0 comments on commit cef8158

Please sign in to comment.