Giter Club home page Giter Club logo

Comments (9)

dClauzel avatar dClauzel commented on July 20, 2024

Oh yes, support for colour blindness is definitely needed.

from iwanthue.

RecursiveOptimization avatar RecursiveOptimization commented on July 20, 2024

Vischeck simulations of http://tools.medialab.sciences-po.fr/iwanthue/theory.php for various types of color-blindness:

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.

jacomyma avatar jacomyma commented on July 20, 2024

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.

ehartford avatar ehartford commented on July 20, 2024

+1

from iwanthue.

ehartford avatar ehartford commented on July 20, 2024

Any tips for generating colorblind-friendly palettes?

from iwanthue.

neilpanchal avatar neilpanchal commented on July 20, 2024

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.

ehartford avatar ehartford commented on July 20, 2024

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.

jacomyma avatar jacomyma commented on July 20, 2024

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.

jacomyma avatar jacomyma commented on July 20, 2024

Ok this is now done! Online today. Not very impressive visually, but measurably efficient.

from iwanthue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.