Darker
✖
Darker
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 allBasic Examples (3)Summary of the most common use cases

https://wolfram.com/xid/0c12z3e-cmxvjt


https://wolfram.com/xid/0c12z3e-trwc4

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

https://wolfram.com/xid/0c12z3e-bryttf


https://wolfram.com/xid/0c12z3e-shmq3f

Scope (9)Survey of the scope of standard use cases
Data (6)
Darker version of a color:

https://wolfram.com/xid/0c12z3e-11ivlk

Darker version of a 2D grayscale image:

https://wolfram.com/xid/0c12z3e-fs02y


https://wolfram.com/xid/0c12z3e-gzdj6x


https://wolfram.com/xid/0c12z3e-hxov8p


https://wolfram.com/xid/0c12z3e-5t13y

Darker automatically threads over colors:

https://wolfram.com/xid/0c12z3e-lptmuo

Parameters (3)
The default darkening fraction is :

https://wolfram.com/xid/0c12z3e-gx3kwx


https://wolfram.com/xid/0c12z3e-b0cizi

Specify different darkening fractions:

https://wolfram.com/xid/0c12z3e-8ohl5a

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

https://wolfram.com/xid/0c12z3e-b6oabn


https://wolfram.com/xid/0c12z3e-cmoabu

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

https://wolfram.com/xid/0c12z3e-hfxv6l


https://wolfram.com/xid/0c12z3e-mvyfi9

Applications (3)Sample problems that can be solved with this function
Use Darker to construct ColorFunction for plots:

https://wolfram.com/xid/0c12z3e-cm5hxe


https://wolfram.com/xid/0c12z3e-wcjr7

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

https://wolfram.com/xid/0c12z3e-g6vtb9

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

https://wolfram.com/xid/0c12z3e-y667go

https://wolfram.com/xid/0c12z3e-utg96h
Combine the darkened background with the original:

https://wolfram.com/xid/0c12z3e-09isd2

Properties & Relations (5)Properties of the function, and connections to other functions
Darker of a color is always returned as an RGBColor:

https://wolfram.com/xid/0c12z3e-ryld4n

The opacity value is unaffected by Darker:

https://wolfram.com/xid/0c12z3e-x0zkdl

Darker is a special case of Blend:

https://wolfram.com/xid/0c12z3e-dd70t7


https://wolfram.com/xid/0c12z3e-4blxs

Darker and Lighter are not commutative:

https://wolfram.com/xid/0c12z3e-ne1849


https://wolfram.com/xid/0c12z3e-bsawy3

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

https://wolfram.com/xid/0c12z3e-2oo9is

Possible Issues (2)Common pitfalls and unexpected behavior
Interactive Examples (1)Examples with interactive outputs
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
]}
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
]}