For each given HSV, it calculated the closest BrickColor from the palette. I only used palette colors because the wiki says other colors might not show up right online. When calculating distance, I had to give hue more weight because colors of clearly different hues were showing up in the same saturation/value panels. There are still a few mishaps but I think it’s good enough to work with!
Someone needs to make a plugin where you click a part and then you use your mouse wheel and scroll through the colors ti’ll you find the right one, now that would be really handy.
for _,v in next, game.Selection:Get()[1]:GetChildren() do
exist[v.BrickColor.Name] = 1
end
local total=0
for n,_ in next, exist do
total=total+1
end
print(total)```
Hmm that’s weird. I know that BrickColors aren’t distributed evenly across all hues, values, and saturations, but I was expecting more than 53 different colors to show up o_O
I posted the source code. You can check it out if you want.