Function Repository Resource:

PalerColor

Source Notebook

Make colors paler and less saturated

Contributed by: Michael Sollami

ResourceFunction["PalerColor"][color]

gives a paler, less saturated version of color.

ResourceFunction["PalerColor"][color,amount]

desaturates color by amount.

Examples

Basic Examples (3) 

Make a color paler:

In[1]:=
{Orange, ResourceFunction["PalerColor"][Orange]}
Out[1]=

Make colors paler:

In[2]:=
Grid[Table[ResourceFunction["PalerColor"][#, i], {i, 0, 1, 0.03}] & /@
   ResourceFunction["SampleColors"][104, 8], Spacings -> {.1, .1}]
Out[2]=

Visualize the paleness of a color:

In[3]:=
x = 0; Framed[Row@{
   Slider[Dynamic[x], {0, 1}, ImageSize -> 200], Spacer[1], Dynamic[PaddedForm[Round[x, .01], 3]]}, Background -> Dynamic@ResourceFunction["PalerColor"][Orange, x], FrameMargins -> Large]
Out[3]=

Properties and Relations (1) 

Compare to Lighter:

In[4]:=
Image[Table[ResourceFunction["PalerColor"][#, i], {i, 0, 1, 0.01}] & /@
   ResourceFunction["SampleColors"][64, 6], ImageSize -> 500]
Out[4]=
In[5]:=
Image[Table[Lighter[#, i], {i, 0, 1, 0.01}] & /@ ResourceFunction["SampleColors"][64, 6], ImageSize -> 500]
Out[5]=

Publisher

Michael Sollami

Version History

  • 1.0.0 – 23 March 2020

Related Resources

License Information