Function Repository Resource:

# DLMFHue

Get a color based on the Digital Library of Mathematical Functions (DLMF) color wheel

Contributed by: Jan Mangaldan
 ResourceFunction["DLMFHue"][h] is a color based on the color wheel, as modified by the Digital Library of Mathematical Functions (DLMF). ResourceFunction["DLMFHue"][h,s,b] specifies the saturation and brightness. ResourceFunction["DLMFHue"][h,s,b,a] specifies opacity a.

## Details and Options

The parameters h, s, b, and a must all be between 0 and 1. Values of s, b, and a outside this range are clipped. Values of h outside this range are treated cyclically.
As h varies from 0 to 1, the color corresponding to ResourceFunction["DLMFHue"][h] runs through red, yellow, green, cyan, blue, magenta, and back to red again.
ResourceFunction["DLMFHue"][h] is equivalent to ResourceFunction["DLMFHue"][h,1,1].
The alternative forms ResourceFunction["DLMFHue"][{h,s,b}] and ResourceFunction["DLMFHue"][{h,s,b,a}] can also be used.
ResourceFunction["DLMFHue"][h,s,b,a] is equivalent to Directive[ResourceFunction["DLMFHue"][h,s,b],Opacity[a]].
If no opacity has been specified, ResourceFunction["DLMFHue"][h,s,b] is equivalent to ResourceFunction["DLMFHue"][h,s,b,1].

## Examples

### Basic Examples (2)

Specify the color of a graphic primitive:

 In[1]:=
 Out[1]=

Specify the color with opacity:

 In[2]:=
 Out[2]=

### Scope (5)

Visualize the DLMF color wheel:

 In[3]:=
 Out[3]=

DLMFHue[h] is equivalent to DLMFHue[h,1,1]:

 In[4]:=
 Out[4]=

DLMFHue[{h,s,b}] is equivalent to DLMFHue[h,s,b]:

 In[5]:=
 Out[5]=

Use Opacity with DLMFHue:

 In[6]:=
 Out[6]=

Use the opacity argument in DLMFHue directly:

 In[7]:=
 Out[7]=

### Applications (2)

Use with ComplexPlot:

 In[8]:=
 Out[8]=

Use with ComplexPlot3D:

 In[9]:=
 Out[9]=

### Properties and Relations (2)

DLMFHue is a transformed version of Hue:

 In[10]:=
 In[11]:=
 Out[11]=

In plot functions, use ColorFunctionScaling to control global scaling of variables:

 In[12]:=
 Out[12]=

### Possible Issues (1)

Saturation and brightness values outside of the {0, 1} range will be clipped:

 In[13]:=
 Out[13]=
 In[14]:=
 Out[14]=

## Version History

• 1.0.0 – 22 December 2020