Darker

Darker[color]
represents a darker version of the specified color.

Darker[color,f]
represents a version of the specified color darkened by a fraction f.

Darker[image,]
gives a darker version of an image.

DetailsDetails

  • Darker[color,1] gives black. »
  • Darker[color,0] gives color. »
  • Darker[color] is equivalent to Darker[color,1/3]. »
  • Darker[color,f] for values of f outside the range to is clipped.
  • Darker[image] works with 2D as well as 3D images.
  • Darker[{col1,col2,},] gives darker versions of each of the . »
  • When applied to color, Darker always returns an RGBColor.
  • When applied to color images, Darker always returns an RGB image.
  • Darker does not affect the opacity of a color or an image.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Darker version of colors:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Specify how much the color should be darkened by using a fraction:

In[1]:=
Click for copyable input
Out[1]=

Darker version of an image:

In[1]:=
Click for copyable input
Out[1]=

Darker version of a 3D image:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2007
(6.0)
| Updated in 2014
(10.0)
Translate this page: