WOLFRAM

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.

Lighter[video,]

gives a version of a video with lighter frames.

Details

  • Lighter can be used to create a lighter version of a color or an image.
  • 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)Summary of the most common use cases

Lighter version of colors:

Out[1]=1
Out[2]=2

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

Out[1]=1

Lighter version of an image:

Out[1]=1

Scope  (9)Survey of the scope of standard use cases

Data  (6)

Lighter version of a color:

Out[1]=1

Lighter version of a 2D grayscale image:

Out[1]=1

Lighter version of an image:

Out[1]=1

Lighter video:

Out[1]=1

Lighter version of a 3D image:

Out[1]=1

Lighter automatically threads over colors:

Out[1]=1

Parameters  (3)

The default lightening fraction is :

Out[5]=5
Out[1]=1

Specify different darkening fractions:

Out[2]=2

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

Out[1]=1
Out[2]=2

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

Out[1]=1
Out[2]=2

Applications  (4)Sample problems that can be solved with this function

Use Lighter to construct ColorFunction for plots:

Out[1]=1
Out[2]=2

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

Out[1]=1

Make a dark, starry sky brighter:

Out[1]=1

Enhance a dark region of an image:

Out[2]=2
Out[3]=3

Properties & Relations  (5)Properties of the function, and connections to other functions

Lighter of a color is always returned as an RGBColor:

Out[1]=1

The opacity value is unaffected by Lighter:

Out[1]=1

Lighter is a special case of Blend:

Out[1]=1

Lighter and Darker are not commutative:

Out[1]=1
Out[2]=2

Lighter for images is a special case of ImageAdjust:

Out[1]=1

Possible Issues  (3)Common pitfalls and unexpected behavior

Values outside of the 01 range will be clipped:

Out[1]=1

Some colors may look faded during the lightening:

Out[1]=1

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

Out[1]=1
Out[2]=2

Interactive Examples  (1)Examples with interactive outputs

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

Out[1]=1

Neat Examples  (1)Surprising or curious use cases

Tilted bumpy texture:

Out[1]=1
Wolfram Research (2007), Lighter, Wolfram Language function, https://reference.wolfram.com/language/ref/Lighter.html (updated 2021).
Wolfram Research (2007), Lighter, Wolfram Language function, https://reference.wolfram.com/language/ref/Lighter.html (updated 2021).

Text

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

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

CMS

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

Wolfram Language. 2007. "Lighter." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. 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

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

BibTeX

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

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

BibLaTeX

@online{reference.wolfram_2025_lighter, organization={Wolfram Research}, title={Lighter}, year={2021}, url={https://reference.wolfram.com/language/ref/Lighter.html}, note=[Accessed: 22-April-2025 ]}

@online{reference.wolfram_2025_lighter, organization={Wolfram Research}, title={Lighter}, year={2021}, url={https://reference.wolfram.com/language/ref/Lighter.html}, note=[Accessed: 22-April-2025 ]}