|
| 1 | +--- |
| 2 | +layout: 01_post |
| 3 | +title: Viewing Maps As If Colorblind |
| 4 | +author: Blake Thompson |
| 5 | +category: Mapnik |
| 6 | +--- |
| 7 | + |
| 8 | +I was prompted by reading [this conversation](https://www.reddit.com/r/gis/comments/3fn7ys/does_anyone_have_tips_for_making_maps_for_a/) recently about color blind maps. I realized suddenly that we don't support a way for our cartographers to easily design maps that would be easy to view by a color blind individual. Determined to change this, I quickly dashed off to my development batcave! |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +After some quick research I found [a research paper on colour blindness](http://vision.psychol.cam.ac.uk/jdmollon/papers/colourmaps.pdf). After quickly deducing that color should be spelled with out a `u`, I proceeded to throw together an algorithm. (Artem thinks it spelled with a `u`) |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +I emerged from the bat cave with some new code in Mapnik. Image filters for three types of color blindness. |
| 17 | + |
| 18 | +* Protanopia (1% of males) -- filter: `color-blind-protanope` |
| 19 | +* Deuteranopia (1% of males) -- filter: `color-blind-deuteranope` |
| 20 | +* Tritanopia (less than 1% of males and females) -- filter: `color-blind-tritanope` |
| 21 | + |
| 22 | +So here are some maps with the color blind filters! |
| 23 | + |
| 24 | +## Original Wheat Paste |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +## Protanopia Wheat Paste |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +## Deuteranopia Wheat Paste |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +## Tritanopia Wheat Paste |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +If all those maps look the same to you, you might be color blind. |
| 41 | + |
| 42 | +<br> |
| 43 | +<br> |
| 44 | +<br> |
| 45 | +<br> |
| 46 | +<br> |
| 47 | +<br> |
| 48 | +<br> |
| 49 | +<br> |
| 50 | +<br> |
| 51 | +<br> |
| 52 | +<br> |
| 53 | +<br> |
| 54 | +<br> |
| 55 | +<br> |
| 56 | + |
| 57 | +Okay I lied, here are the real ones. |
| 58 | + |
| 59 | +## Original Wheat Paste |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +## Protanopia Wheat Paste |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | +## Deuteranopia Wheat Paste |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | +## Tritanopia Wheat Paste |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +These image filters are now released in mapnik `3.0.3` and node mapnik `3.4.3`! |
0 commit comments