Comments (6)
Yes that will fix a number of current issues! I'm in the process of updating the tool, but the change is bigger than I expected and impacts many aspects.
The biggest issue is that previous Chroma returned NaN
when the conversion from Lab to RGB was impossible (out of bound coordinates). Now it always returns a color, which is a feature but prevents me from detecting when the coordinates are out of bound. Once this is fixed, I'll ship it!
from iwanthue.
For color validation I recommend using D3 v4 module called d3-color.
Mike Bostock created displayable()
function so you just check it like
d3_color.rgb({r, g, b}).displayable()
d3_color.lab({l, a, b}).displayable()
from iwanthue.
Thanks for this advice :) !
from iwanthue.
I updated Chroma. I did not implement your suggestion and sticked to a tweak copied from Chroma source code. I think the next step would be to package the library into a d3 compatible module not requiring Chroma, but that's for another time! Thanks for your suggestions anyway.
from iwanthue.
You're welcome!
BTW looks like colors at http://tools.medialab.sciences-po.fr/iwanthue/ are still yellowish with C=0.
from iwanthue.
The repo is up to date but not yet the online website. In a few days.
from iwanthue.
Related Issues (20)
- build palette around pre-selected colours? HOT 1
- Theory page JavaScript seems to get stuck in a loop
- Getting many visually distinct colors with the same saturation and lightness is hard
- Edit manipulates wrong colour after ordering them
- Sort by multiple keys
- Not working at all on os/x sierra (chrome or safari) ? HOT 2
- Are we still maintained HOT 3
- Theory page seems to cause browser hang HOT 2
- "I Want Hue" online tool "diff" mode bug
- We really need to create a npm package for this
- Add presets & filters to npm package
- Check bugfix for diffSort
- NaN bug in Protanope distance calculations for RGB color 9549d0
- Recreating same palette again with same parameters - what is the seed for palette? HOT 5
- Suggestion: Add "Steps" and "Ultra Precision" to GUI
- Locks position not changed after changing sorting
- Add HSL values to each color.
- Suggestion: Incorporate background color and WCAG contrast annotations. HOT 1
- Accompanying paper HOT 3
- Color space: boundaries for C HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iwanthue.