npm install
npm start
Credit goes to Gregor Aisch and his excellent post on, How To Avoid Equidistant HSV Colors. To convert/generate colors in a programmatic way check out chroma.js.
:art: Colorpicker for data
Home Page: https://tristen.ca/hcl-picker/
License: BSD 3-Clause "New" or "Revised" License
npm install
npm start
Credit goes to Gregor Aisch and his excellent post on, How To Avoid Equidistant HSV Colors. To convert/generate colors in a programmatic way check out chroma.js.
If I'm not mistaken, the picker uses the sRGB space, which results in very limited options e.g. at high chroma. If there was a dropdown to select others like AdobeRGB, it would be useful for a wider ranger of applications than selecting a web-safe color pallette.
Ref #8
Using the color picker updates the address in the URL bar in real-time, but using that link to come back to the page doesn't restore the settings used. (I'm on Chrome v49)
http://tristen.ca/hcl-picker/#/hlc/14/1.12/182A38/F7B64A
The hex code "#-1A1A9" is not valid though the swatch shows correctly. It should be #005b52 based on the RGB value on the swatch.
Hi,
I can't seem to see any license or copying information. Which license is the project under?
Cheers,
Andrew
This can happen as cited by @dnomadb:
It would be sweet if the hex values were in text boxes to make them easier to copy and paste. It's a would-be-nice, not a gotta-have-it.
@tristen, have you considered adding a hue slider? Here’s a mockup of what it might look like. Could be a very nice little feature to be able to get a wider variety of palettes.
Edit: UI wasn’t accurate, so I updated that.
Consider the following scale: http://tristen.ca/hcl-picker/#/clh/5/1.16/560003/E2A58A
If the Hue slider is fixed, I expect all colors to have the same hue value. This isn't, however, what chroma.js tells me about the colors that the picker suggests:
console.log(chroma("#560003").hcl());
// [32.025259877450765, 42.92174912486389, 15.411936172871435]
console.log(chroma("#AF4737").hcl());
// [36.77725531337734, 51.75956722662115, 44.08773663134244]
console.log(chroma("#E2A58A").hcl());
// [50.11947447114051, 29.803701752508704, 72.83727863959362]
All HCL color components are different. Am I missing something?
Possibly it's by design, but the http://tristen.ca/hcl-picker site does a pretty extreme number of location/history changes.
In less than 10 minutes clicking around the tool I got around 1700 items in my browser history, which is somewhat problematic if you use Chrome's terrible infinite scrolling history page.
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.