Color blindness emulation#312
Conversation
|
First up, here is a collection of tools to test against and reference implementations
To test I installed Color Oracle however taking a screenshot with Color Oracle enabled seemed to mess with the colors. I've manually tested with Color Oracle comparing with the osm-liberty style. This wasn't really a good enough test because it was only a visual (side by side) check. But it seemed correct. Secondly I tested with the http://mapeper.github.io/jsColorblindSimulator/ uploading a screenshot of the editor, the results were as follows
There was very slight color variations in some modes which could be to do with the generation of the screenshots, or some kind of compression. Either way the variation was barely noticeable in the modes highlighted above. I've also checked the matrixes against other implementations and they are the same. I believe this to be good to merge. |
An initial attempt at adding 'color blindness emulation' to the editor. To use it add a query string param
color-blindness-emulationwith one of the following values. Note the links point to the branch build of the editor for testing.This is the first stage, if it's correct we'll merge and work out a way to create a UI
Note: Most of the credit goes to https://github.com/hail2u/color-blindness-emulation