Color vision deficiency: Difference between revisions
From JSXGraph Wiki
(Created page with "JSXGraph can give a rough impression about how color blind people see your work. It is possible to emulate three types of color vision deficiency: '''Protanopia''', '''Deuteranop...") |
No edit summary |
||
Line 102: | Line 102: | ||
})(); | })(); | ||
</jsxgraph> | </jsxgraph> | ||
==Code== | |||
<source lang="javascript"> | |||
// To enable color vision deficiency emulation just use | |||
board.emulateColorblindness(deficieny); | |||
// where deficieny is a string equal to either 'protanopia', 'deuteranopia' or 'tritanopia'. To disable it use | |||
board.emulateColorblindness(); | |||
// without any parameters. | |||
</source> | |||
==References== | ==References== |
Latest revision as of 18:11, 23 June 2011
JSXGraph can give a rough impression about how color blind people see your work. It is possible to emulate three types of color vision deficiency: Protanopia, Deuteranopia, and Tritanopia.
Consider this geometric construction from the Euler line example.
Code
// To enable color vision deficiency emulation just use
board.emulateColorblindness(deficieny);
// where deficieny is a string equal to either 'protanopia', 'deuteranopia' or 'tritanopia'. To disable it use
board.emulateColorblindness();
// without any parameters.