Simulate color blindness/defects?

Bug #790534 reported by Antonio Roberts
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
jazzynico

Bug Description

When picking a color it would be very useful to know which colors may not display properly for those with color blindness/defects. More information on what types there are can be found here http://en.wikipedia.org/wiki/Color_blindness

Additionally, for ideas of how this might be implemented take a look at this website http://colorschemedesigner.com/ (under the Colorblind tab) and at Scribus (I use 1.5)

Scribus documentation:
<http://documentation.scribus.net/index.php/The_Color_Wheel> (old version?)
<http://documentation.scribus.net/index.php/Color_Wheel> (Scribus 1.4)

Tags: color ui
Revision history for this message
su_v (suv-lp) wrote :

Existing solutions and proposals for Inkscape:

a) Script extension:
Inkscape - Color Blindness Extension | kaioa.com:
<http://kaioa.com/taxonomy/term/33>

b) SVG filter effects:
Color Blindness filters - OpenClipArt:
<http://www.openclipart.org/detail/22299>

c) Display filters
Blueprint "Display filters"
<https://blueprints.launchpad.net/inkscape/+spec/display-filters>
<http://wiki.inkscape.org/wiki/index.php/SpecDisplayFilters>

d) New color tool
Blueprint "A Colorscheme designer for the Inkscape palette"
<https://blueprints.launchpad.net/inkscape/+spec/agave-integration-in-inkscape-bottom-palette>
Bug #641403 “Import Agave into the Inkscape GUI”

Changed in inkscape:
importance: Undecided → Wishlist
tags: added: color ui
description: updated
description: updated
Revision history for this message
Alejandro Manzano Marín (alejandro-manzano-marin) wrote :

Making a tool or extension which would let you simulate different levels of colorblindness would be ideal, especially for the thousands of us scientists which use inkscape, since conveying properly messages through color-coded graphics is essential to sceintific production

Revision history for this message
jazzynico (jazzynico) wrote :

We already have too many extensions IMHO, and an SVG filters version looks more promising. If it's only a matter of colormatrix values, it could be relatively easy to implement.

Changed in inkscape:
assignee: nobody → jazzynico (jazzynico)
milestone: none → 0.92
status: New → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

Patch attached. Tested on Windows XP with Inkscape trunk rev. 13979.

Changed in inkscape:
status: Triaged → In Progress
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Some comments:

> a) Script extension

Unfortunately, the extension is based on a code that might not be compatible with the GPLv2 license:
-----
The used Color Blind Simulation algorithm is copyright (c) 2000-2001 by Matthew Wickline ( http://matthew.wickline.org/ ) and the Human-Computer Interaction Resource Network ( http://hcirn.com/ ). For commercial licenses [of the original JavaScript code or derivative works thereof], please contact the Human-Computer Interaction Resource Network ( http://hcirn.com/ ).
-----

> b) SVG filter effects

The attached patch uses the filters as defined in the SVG file. No license issue here (openclipart), seems faster than the Python extension, but the result it not as accurate (everything is calculated in the RGB colorspace).

Comments are very welcome.

Revision history for this message
Kris (kris-degussem) wrote :

Just a quick comment: (as a non color blind person) try to replicate the topmost figure on https://nl.wikipedia.org/wiki/Kleurenblindheid

(the figure caption says: bottom left: how a "red-colourblind" person sees the picture; bottom right: how a "green-colourblind" person sees the picture )

Revision history for this message
su_v (suv-lp) wrote :

Attaching fixed version of patch (original one doesn't apply) as convenience for other testers.

Revision history for this message
su_v (suv-lp) wrote :

Could inkscape use a tighter filter effects region FER (100% instead of 120% (default if not specified)) for such color effects?

Revision history for this message
jazzynico (jazzynico) wrote :

> Attaching fixed version of patch

Thanks! I had to hand-edit the file and completely failed my copy-paste...

> Could inkscape use a tighter filter effects region FER

Of course yes.

Revision history for this message
jazzynico (jazzynico) wrote :

Feature added in the trunk, revision 13984.
Please test!

Changed in inkscape:
status: In Progress → Fix Committed
Revision history for this message
jazzynico (jazzynico) wrote :

Hishihara plates. Should help testing.

Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.