Function Repository Resource:

DeeperColor

Source Notebook

Make colors deeper and more saturated

Contributed by: Michael Sollami

ResourceFunction["DeeperColor"][color]

give a deeper, more saturated version of color.

ResourceFunction["DeeperColor"][color,amount]

makes the given color more saturated by amount.

Examples

Basic Examples (3) 

Make a color deeper:

In[1]:=
{LightBlue, ResourceFunction["DeeperColor"][LightBlue]}
Out[1]=

Make colors deeper:

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

Visualize the deepness 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["DeeperColor"][LightBlue, x], FrameMargins -> Large]
Out[3]=

Properties and Relations (1) 

Compare to Darker:

In[4]:=
Image[Table[
    ResourceFunction["DeeperColor"][#, i], {i, 0, 1, 0.01}] & /@ ResourceFunction["SampleColors"][34, 10], ImageSize -> 500]
Out[4]=
In[5]:=
Image[Table[Darker[#, i], {i, 0, 1, 0.01}] & /@ ResourceFunction["SampleColors"][34, 10], ImageSize -> 500]
Out[5]=

Publisher

Michael Sollami

Version History

  • 1.0.0 – 20 March 2020

Related Resources

License Information