Wolfram Research

Function Repository Resource:

ColorBlindnessDiagram

Source Notebook

Given a symbol and two colors make a color blindness diagram

Contributed by: Ed Pegg Jr

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

A symbol is shown in color1 with a background of color2 using randomized disks.

Examples

Basic Examples

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

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

Scope

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 don’t seem to be discernable:

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

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information