Comments (9)
Oh yes, support for colour blindness is definitely needed.
from iwanthue.
Vischeck simulations of http://tools.medialab.sciences-po.fr/iwanthue/theory.php for various types of color-blindness:
- Deuteranope (a form of red/green color deficit) - http://vischeck.homeip.net/uploads/136063897132450/
- Protanope (another form of red/green color deficit) - http://vischeck.homeip.net/uploads/13606391831544
- Tritanope (a blue/yellow deficit- very rare) - http://vischeck.homeip.net/uploads/13606393283022/
The Vischeck simulations aren't perfect, for example, all the "color chips" are full color (i.e. not simulated). Also, the "Taking benefits from custom color spaces" bar-graphs appear to have disappeared. (I'm not color-blind myself, so I don't know if their disappearance is a poor simulation artifact or a genuine color-blind challenge with the iWantHue color scheme.)
from iwanthue.
It would be great I agree. The process in iWantHue might work for color-blind-friendly color-spaces. By the way I do not have the time to integrate the conversions between common color spaces and these color spaces. Also, I do not know if it is possible to make it work for the different types of color blindness at the same time.
I used Chroma.js and the conversions are also available in d3.js. I guess that some of these transformations are available somwhere in the vischeck code. Actually what I need is just the way to re-evaluate the distance between two colors, taking in account one or several types of blindness.
from iwanthue.
+1
from iwanthue.
Any tips for generating colorblind-friendly palettes?
from iwanthue.
Hi Eric, I'd love to contribute and find a way to do generate color blind palettes but the only information I could find is how to create colors for color blind test. May be we reverse engineer the algorithm to generate distinct colors that are color blind safe?
http://mudcu.be/labs/Color-Vision/Javascript/Color.Vision.Simulate.js
from iwanthue.
I am getting interested in this question.
http://bconnelly.net/2013/10/creating-colorblind-friendly-figures/
http://artax.karlin.mff.cuni.cz/r-help/library/biovizBase/html/colorBlindSafePal.html
http://www.personal.psu.edu/cab38/ColorBrewer/Steve_Gardner_thesis_PSU.pdf
from iwanthue.
OK let me help you. In iWantHue we rely on a computation of perceptive distance between colors. This distance is the classical distance computed in the CIE LAB color space. But we can just tweak the distance computing to take color blindness in account.
I just factored distance computing in the code, and edited it to include a quick solution. I did not integrate that in the UI, but I may do it soon (takes more time). The new lines are there: https://github.com/medialab/iwanthue/blob/master/js/libs/chroma.palette-gen.js#L263-L278
The simple idea is that the a* channel in CIE LAB is the perceptive contrast between red and green. By just omitting it in the distance computation, we have actual the perceptive distance for red-green deficient vision.
We do not want to completely eliminate the non-color-blind contrast because the information is still relevant. For me the question is how to aggregate color-blind and non-color-blind distances. Some combination of min, max and coefficient probably makes more sense...
I will integrate this to the UI if it makes sense and if I have more time in the next days
from iwanthue.
Ok this is now done! Online today. Not very impressive visually, but measurably efficient.
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.