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.

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)

Darker version of colors:

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

Darker version of an image:

Scope  (9)

Data  (6)

Darker version of a color:

Darker version of a 2D grayscale image:

Darker version of an image:

Darker video:

Darker version of a 3D image:

Darker automatically threads over colors:

Parameters  (3)

The default darkening fraction is :

Specify different darkening fractions:

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

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

Applications  (3)

Use Darker to construct ColorFunction for plots:

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

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

Combine the darkened background with the original:

Properties & Relations  (5)

Darker of a color is always returned as an RGBColor:

The opacity value is unaffected by Darker:

Darker is a special case of Blend:

Darker and Lighter are not commutative:

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

Possible Issues  (2)

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

Some colors may look greenish during the darkening:

Interactive Examples  (1)

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

Neat Examples  (1)

Tilted bumpy texture:

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).

CMS

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_darker, organization={Wolfram Research}, title={Darker}, year={2021}, url={https://reference.wolfram.com/language/ref/Darker.html}, note=[Accessed: 21-November-2024 ]}