vscode-color-pick icon indicating copy to clipboard operation
vscode-color-pick copied to clipboard

Lookup name of color

Open LightCC opened this issue 4 years ago • 0 comments

Enhancement request

Reverse lookup the name of the selected color in the color picker box. Print it out somewhere in the box.

I'm not sure if every RGB combination has a color or not in the database you're using. If not, it could only report if a name exists for that exact RGB value, or you could generate an algorithm to find the closest match (might want to indicate that in the printout if that's the case).

(You could check out the "Name That Color" extension for other ideas on this, or even make that a child dependency and call that extension to do the lookup, maybe? Might be able to combine the extensions... It has another type of output - sass variable, which is "$color-name: RGB or #HEX value of color").

LightCC avatar Jul 03 '20 23:07 LightCC