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.

Details

  • 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. »

Examples

open allclose all

Basic Examples  (3)

Lighter version of colors:

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

Lighter version of an image:

Scope  (8)

Data  (5)

Lighter version of a color:

Lighter version of a 2D grayscale image:

Lighter version of an image:

Lighter version of a 3D image:

Lighter automatically threads over colors:

Parameters  (3)

The default lightening fraction is :

Specify different darkening fractions:

With a lightening fraction of zero, the color is unchanged:

With a lightening fraction of one, the color becomes white:

Applications  (4)

Use Lighter to construct ColorFunction for plots:

Use Darker and Lighter values of a particular hue as a color function:

Make a dark, starry sky brighter:

Enhance a dark region of an image:

Properties & Relations  (5)

Lighter of a color is always returned as an RGBColor:

The opacity value is unaffected by Lighter:

Lighter is a special case of Blend:

Lighter and Darker are not commutative:

Lighter for images is a special case of ImageAdjust:

Possible Issues  (3)

Values outside of the 01 range will be clipped:

Some colors may look faded during the lightening:

Lighter behaves differently when applied to a color and an image pixel of the same color:

Interactive Examples  (1)

Observe the changing chromaticity of a color image as the image is made lighter:

Neat Examples  (1)

Tilted bumpy texture:

Wolfram Research (2007), Lighter, Wolfram Language function, https://reference.wolfram.com/language/ref/Lighter.html (updated 2014).

Text

Wolfram Research (2007), Lighter, Wolfram Language function, https://reference.wolfram.com/language/ref/Lighter.html (updated 2014).

BibTeX

@misc{reference.wolfram_2021_lighter, author="Wolfram Research", title="{Lighter}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/Lighter.html}", note=[Accessed: 01-August-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_lighter, organization={Wolfram Research}, title={Lighter}, year={2014}, url={https://reference.wolfram.com/language/ref/Lighter.html}, note=[Accessed: 01-August-2021 ]}

CMS

Wolfram Language. 2007. "Lighter." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Lighter.html.

APA

Wolfram Language. (2007). Lighter. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Lighter.html