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 found one problem when I name the color of #444444.
"mine_shaft" was given by plugin, the same as the color of #222222, but they are a little bit different.
Then I input #444444 on the website name that color, but I got the name of "Tundora".
Because H in HSL represents a degree, the delta value between #4A4244 and #444444 should be 15 but not 345. As a result, it makes #323232 be the closest color to #444444.
The fix should be something like this:
privatefundeltaOfTwoDegree(l:Int, r:Int): Int {
var delta = abs(l - r)
if (delta >=180) {
delta = (360- delta)
}
return delta
}
Hope it helps.
The text was updated successfully, but these errors were encountered:
I found one problem when I name the color of
#444444
."mine_shaft" was given by plugin, the same as the color of
#222222
, but they are a little bit different.Then I input
#444444
on the website name that color, but I got the name of "Tundora".Steps to reproduce:
Actual result:
Expected result:
I think the problem is at this line after I checked the source of ntc:
name-that-color-intellij-plugin/namethatcolor/src/main/kotlin/il/co/galex/namethatcolor/core/manager/ColorNameFinder.kt
Line 46 in 69d18a1
Let's look at the HSL value of three colors:
Because
H
in HSL represents a degree, the delta value between#4A4244
and#444444
should be15
but not345
. As a result, it makes#323232
be the closest color to#444444
.The fix should be something like this:
Hope it helps.
The text was updated successfully, but these errors were encountered: