Function Repository Resource:

ColorBlindnessDiagram

Source Notebook

Make a color blindness diagram given a symbol and two colors

Contributed by: Ed Pegg Jr

ResourceFunction["ColorBlindnessDiagram"][symbol,color1,color2]

shows a symbol in color1 with a background of color2 using randomized disks.

Examples

Basic Examples (1) 

A randomized color diagram is created from a symbol and two colors:

In[1]:=
ResourceFunction["ColorBlindnessDiagram"]["3", Darker[Red], Lighter[Green]]
Out[1]=

Scope (2) 

The greater the distance between colors, the easier they are to discern:

In[2]:=
ResourceFunction["ColorBlindnessDiagram"][
 FromCharacterCode[RandomInteger[{65, 90}]], Hue[.2], Hue[.6]]
Out[2]=

These two colors are close together and do not seem to be discernible:

In[3]:=
ResourceFunction["ColorBlindnessDiagram"][
 FromCharacterCode[RandomInteger[{65, 90}]], Hue[.3], Hue[.35]]
Out[3]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.1.0 – 25 March 2022
  • 1.0.0 – 18 February 2019

Related Resources

License Information