simulate deuteranopia, the most common form of colorblindness

Simulate the prevalent deuteranopia form of colorblindness.

var deuteranopia = require('deuteranopia');
             // rgb 
deuteranopia(0, 200, 200);
  • deuteranopia(r, g, b)
  • deuteranopia([r, g, b])

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

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