WOLFRAM

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.

Darker[video,]

gives a version of a video with darker frames.

Details

  • Darker can be used to create a darker version of a color or an image.
  • 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 0 to 1 is clipped.
  • Darker[image] works with 2D as well as 3D images.
  • Darker[{col1,col2,},] gives darker versions of each of the coli. »
  • 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.

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

Darker version of colors:

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

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

Out[1]=1

Darker version of an image:

Out[1]=1

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

Data  (6)

Darker version of a color:

Out[3]=3

Darker version of a 2D grayscale image:

Out[1]=1

Darker version of an image:

Out[1]=1

Darker video:

Out[1]=1

Darker version of a 3D image:

Out[1]=1

Darker automatically threads over colors:

Out[1]=1

Parameters  (3)

The default darkening fraction is :

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

Specify different darkening fractions:

Out[3]=3

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

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

With a darkening fraction of one, the color becomes black:

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

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

Use Darker 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

Detect the face in an image and highlight it by darkening the background:

Combine the darkened background with the original:

Out[3]=3

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

Darker of a color is always returned as an RGBColor:

The opacity value is unaffected by Darker:

Darker is a special case of Blend:

Out[2]=2

Darker and Lighter are not commutative:

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

Darker for images is a special case of ImageAdjust or Blend:

Out[1]=1

Possible Issues  (2)Common pitfalls and unexpected behavior

Values outside of the 0, 1 range will be clipped:

Out[11]=11

Some colors may look greenish during the darkening:

Out[1]=1

Interactive Examples  (1)Examples with interactive outputs

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

Out[2]=2

Neat Examples  (1)Surprising or curious use cases

Tilted bumpy texture:

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

Text

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

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

CMS

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

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

APA

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

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

BibTeX

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

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

BibLaTeX

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

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