Skip to content

Commit

Permalink
Use defaults.warn instead of console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Feb 19, 2024
1 parent 6d567b8 commit 7eb19d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deltaE/deltaE2000.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import defaults from "../defaults.js";
import lab from "../spaces/lab.js";
import lch from "../spaces/lch.js";

Expand Down Expand Up @@ -107,7 +108,7 @@ export default function (color, sample, {kL = 1, kC = 1, kH = 1} = {}) {
Δh = hdiff + 360;
}
else {
console.log("the unthinkable has happened");
defaults.warn("the unthinkable has happened");
}

// weighted Hue difference, more for larger Chroma
Expand Down

0 comments on commit 7eb19d9

Please sign in to comment.