deuteranopia

simulate deuteranopia, the most common form of colorblindness

npm install deuteranopia
2 downloads in the last week
4 downloads in the last month

deuteranopia

Simulate the prevalent deuteranopia form of colorblindness.

example

var deuteranopia = require('deuteranopia');

             // rgb
deuteranopia(0, 200, 200);

api

  • deuteranopia(r, g, b)
  • deuteranopia([r, g, b])

Given a RGB triplet, return a RGB triplet that simulates the effect of deuteranopia.

Credits

Based heavily off of Color Oracle, which is in turn based off of Digital Video Colourmaps for Checking the Legibility of Displays by Dichromats

npm loves you