You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there is an issue with the harmonies plugin for specific input values. For example if I start with certain hex values sometimes the result returned is slightly off. For example:
const color = colord("#03FF84");
color.harmonies("complementary").map((c) => c.toHex()); // ["#03FF85, "#FF037D"]
You can see that the original color changes from #03FF84 to #03FF85. This problem happens on all harmonies for this color: tetradic, analogous etc. I took a quick look at the source code and I suspect some kind of rounding might be occurring. Does anyone know a way around this?
The text was updated successfully, but these errors were encountered:
I think there is an issue with the harmonies plugin for specific input values. For example if I start with certain hex values sometimes the result returned is slightly off. For example:
const color = colord("#03FF84");
color.harmonies("complementary").map((c) => c.toHex()); // ["#03FF85, "#FF037D"]
You can see that the original color changes from #03FF84 to #03FF85. This problem happens on all harmonies for this color: tetradic, analogous etc. I took a quick look at the source code and I suspect some kind of rounding might be occurring. Does anyone know a way around this?
The text was updated successfully, but these errors were encountered: