Skip to content

Commit b9de9c9

Browse files
committed
Added blog post about color blind filters
1 parent ce81f4d commit b9de9c9

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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+
![image](https://cloud.githubusercontent.com/assets/1794907/9077377/fb015120-3af2-11e5-96e0-28bd98e350e6.png)
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+
![image](https://cloud.githubusercontent.com/assets/1794907/9077401/68673de2-3af3-11e5-88b5-c26c92ca5fcd.png)
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+
![image](https://cloud.githubusercontent.com/assets/1794907/9077535/f186b5e8-3af4-11e5-8fc7-de0dc84961d5.png)
27+
28+
## Protanopia Wheat Paste
29+
30+
![image](https://cloud.githubusercontent.com/assets/1794907/9077535/f186b5e8-3af4-11e5-8fc7-de0dc84961d5.png)
31+
32+
## Deuteranopia Wheat Paste
33+
34+
![image](https://cloud.githubusercontent.com/assets/1794907/9077535/f186b5e8-3af4-11e5-8fc7-de0dc84961d5.png)
35+
36+
## Tritanopia Wheat Paste
37+
38+
![image](https://cloud.githubusercontent.com/assets/1794907/9077535/f186b5e8-3af4-11e5-8fc7-de0dc84961d5.png)
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+
![image](https://cloud.githubusercontent.com/assets/1794907/9077535/f186b5e8-3af4-11e5-8fc7-de0dc84961d5.png)
62+
63+
## Protanopia Wheat Paste
64+
65+
![image](https://cloud.githubusercontent.com/assets/1794907/9089835/d5844212-3b5c-11e5-90ec-879756682b3f.png)
66+
67+
## Deuteranopia Wheat Paste
68+
69+
![image](https://cloud.githubusercontent.com/assets/1794907/9089855/ed32d180-3b5c-11e5-88ce-ceb3a1a18a0f.png)
70+
71+
## Tritanopia Wheat Paste
72+
73+
![image](https://cloud.githubusercontent.com/assets/1794907/9089861/f484cf7e-3b5c-11e5-95e6-e64f4530a747.png)
74+
75+
These image filters are now released in mapnik `3.0.3` and node mapnik `3.4.3`!

0 commit comments

Comments
 (0)