colorjs / color-namer Goto Github PK
View Code? Open in Web Editor NEW:art: Give me a color and I'll name it.
License: MIT License
:art: Give me a color and I'll name it.
License: MIT License
Hi,
Could you publish the latest version to npm please? The current npm version is missing some of the colour mappings and has a different API.
Thanks for the useful module.
XKCD colors are being used in Matplotlib
require("color-namer")({h: 180, s: 1, v: 1})
unknown format: [object Object]
I want it to understand my HSV colors.
Here are some curated color names, which can be easily used
Main sources being
First please check this graph for Windows/Xamarin colors
And also please consider other colors from the lists of https://github.com/meodai/color-names#sources-names-
Hi
I am packaging color-namer in Fedora, please include a license text to include in the rpm
colorNamer(myHex) only ever seems to return a small, predefined set of colors. Is this intentional?
IMHO for determine color in L_a_b color space - Lightness is least important
So I think is needed reduce the L in Lab, for reduce its impact
People have curated the information of national standard colors.
So when I try importing in Svelte, I get the following error in console:
npm run dev
> color-convert@1.0.0 dev
> svelte-kit dev
Pre-bundling dependencies:
svelte/store
svelte
color-namer
dino-color-picker
lodash.merge
(...and 5 more)
(this will be run only when your dependencies or config have changed)
> node_modules/d/index.js:7:30: error: Could not read from file: C:\Users\justi\Documents\GitHub\colorpicker\node_modules\es5-ext\string\index.js#\contains
7 │ , contains = require("es5-ext/string/#/contains");
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> node_modules/es6-iterator/index.js:3:23: error: Could not read from file: C:\Users\justi\Documents\GitHub\colorpicker\node_modules\es5-ext\array\index.js#\clear
3 │ var clear = require("es5-ext/array/#/clear")
╵ ~~~~~~~~~~~~~~~~~~~~~~~
> Build failed with 2 errors:
node_modules/d/index.js:7:30: error: Could not read from file: C:\Users\justi\Documents\GitHub\colorpicker\node_modules\es5-ext\string\index.js#\contains
node_modules/es6-iterator/index.js:3:23: error: Could not read from file: C:\Users\justi\Documents\GitHub\colorpicker\node_modules\es5-ext\array\index.js#\clear
Error: Build failed with 2 errors:
node_modules/d/index.js:7:30: error: Could not read from file: C:\Users\justi\Documents\GitHub\colorpicker\node_modules\es5-ext\string\index.js#\contains
node_modules/es6-iterator/index.js:3:23: error: Could not read from file: C:\Users\justi\Documents\GitHub\colorpicker\node_modules\es5-ext\array\index.js#\clear
at failureErrorWithLog (C:\Users\justi\Documents\GitHub\colorpicker\node_modules\esbuild\lib\main.js:1493:15)
at C:\Users\justi\Documents\GitHub\colorpicker\node_modules\esbuild\lib\main.js:1151:28
at runOnEndCallbacks (C:\Users\justi\Documents\GitHub\colorpicker\node_modules\esbuild\lib\main.js:941:63)
at buildResponseToResult (C:\Users\justi\Documents\GitHub\colorpicker\node_modules\esbuild\lib\main.js:1149:7)
at C:\Users\justi\Documents\GitHub\colorpicker\node_modules\esbuild\lib\main.js:1258:14
at C:\Users\justi\Documents\GitHub\colorpicker\node_modules\esbuild\lib\main.js:629:9
at handleIncomingPacket (C:\Users\justi\Documents\GitHub\colorpicker\node_modules\esbuild\lib\main.js:726:9)
at Socket.readFromStdout (C:\Users\justi\Documents\GitHub\colorpicker\node_modules\esbuild\lib\main.js:596:7)
at Socket.emit (node:events:390:28)
at Socket.emit (node:domain:475:12)
And on page:
SyntaxError 500
The requested module '/node_modules/lodash.merge/index.js' does not provide an export named 'default'
I've been dealing with this error seemingly forever, but the project worked fine until I added this package, and removing it makes it work fine again.
import namer from 'color-namer';
results in this error and so does the async way:
onMount(async () => {
const namer = await import('color-namer');
My second question is why the file size is so massive. 118.2kb for something with a file size that should be almost entirely composed of the lists of colors it uses is a bit much to me. Compressed, the colors should probably only be 40kb or so as a rough guess. I was just wondering why the code is 9000+ lines and why there are so many dependencies.
This package looks awesome, nice work and can't wait to use it. Thanks in advance.
As in alternative to JS/SVG/CSS color, for fairness, in all times.
Have a look at this list, and their tables are clean
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.