Simulate color blindness/defects?

Bug #790534 reported by Antonio Roberts on 2011-05-31
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
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)

Related branches

~suv (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

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

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
jazzynico (jazzynico) wrote :

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

Changed in inkscape:
status: Triaged → In Progress
jazzynico (jazzynico) wrote :
jazzynico (jazzynico) wrote :
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.

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 )

~suv (suv-lp) wrote :

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

~suv (suv-lp) wrote :

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

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.

jazzynico (jazzynico) wrote :

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

Changed in inkscape:
status: In Progress → Fix Committed
jazzynico (jazzynico) wrote :

Hishihara plates. Should help testing.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints