Darker
更多信息
范例
打开所有单元 关闭所有单元基本范例 (3)
范围 (9)
数据 (6)
颜色的 Darker 版本:
Darker[RGBColor[1, 0, 0]]Darker[[image]]Darker[[image]]Darker[\!\(\*VideoBox[""]\)]Darker[[image]]Darker 自动逐项作用于颜色:
Darker[{Red, Green, Blue}, 1 / 2]参数 (3)
Darker[Red] == Darker[Red, 1 / 3]{Graphics[{Darker[Red], Disk[]}], Graphics[{Darker[Red, 1 / 3], Disk[]}]}Table[Graphics[{Darker[Red, i], Disk[]}], {i, {0.2, 0.4, 0.6, 0.8}}]Darker[Blue, 0] == Blue{Graphics[{Darker[Blue, 0], Disk[]}], Graphics[{Blue, Disk[]}]}Darker[Blue, 1] == RGBColor[0, 0, 0]{Graphics[{Darker[Blue, 1], Disk[]}], Graphics[{Black, Disk[]}]}应用 (3)
利用 Darker 构造用于绘制图形的 ColorFunction :
Plot3D[y Sin[x ^ 2 + y ^ 2], {x, -3, 3}, {y, -3, 3}, ColorFunction -> (Darker[Cyan, #3]&), Mesh -> None, PlotPoints -> 40]DensityPlot[Sin[x]Sin[y], {x, -4, 4}, {y, -4, 4}, ColorFunction -> (Darker[Cyan, #]&)]用 Darker 和 Lighter 后的特定色调值作为颜色函数:
ContourPlot[Sin[x]Sin[y], {x, 0, 2Pi}, {y, 0, 2Pi}, ColorFunction -> (If[# < 0, Darker[Blue, Abs[#]], Lighter[Red, #]]&), ColorFunctionScaling -> False]i = [image];
{w, h} = ImageDimensions[i];mask = Graphics[FindFaces[i], PlotRange -> {{0, w}, {0, h}}];bg = SetAlphaChannel[Darker[i, .55], mask];
ImageCompose[i, bg]属性和关系 (5)
Darker[CMYKColor[0, 1, 1, 0]]//InputForm不透明度值不受 Darker 影响:
Darker[RGBColor[1, 0, 0, .4]]//InputForm{Darker[Blue, 1 / 2], Blend[{Blue, Black}, 1 / 2]}//InputForm{Graphics[{Darker[Blue, 1 / 2], Disk[]}], Graphics[{Blend[{Blue, Black}, 1 / 2], Disk[]}]}Lighter[Darker[Red, .5], .5]Darker[Lighter[Red, .5], .5]图像的 Darker 是 ImageAdjust 或 Blend 的特殊情况:
{Darker[[image], 0.5], ImageAdjust[[image], {0, -0.5}], Blend[{[image], Black}, 0.5]}可能存在的问题 (2)
互动范例 (1)
文本
Wolfram Research (2007),Darker,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Darker.html (更新于 2021 年).
CMS
Wolfram 语言. 2007. "Darker." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2021. https://reference.wolfram.com/language/ref/Darker.html.
APA
Wolfram 语言. (2007). Darker. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Darker.html 年
BibTeX
@misc{reference.wolfram_2026_darker, author="Wolfram Research", title="{Darker}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Darker.html}", note=[Accessed: 04-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_darker, organization={Wolfram Research}, title={Darker}, year={2021}, url={https://reference.wolfram.com/language/ref/Darker.html}, note=[Accessed: 04-September-2026]}