Lighter

Lighter[color]
represents a lighter version of the specified color.

Lighter[color,f]
represents a version of the specified color lightened by a fraction f.

Lighter[image,]
gives a lighter version of an image.

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Lighter 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 lightened by using a fraction:

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

Lighter version of an image:

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

Lighter version of a 3D image:

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