MaxColorDistance
Details

- Color distances are typically computed using ColorDistance. Most functions take a DistanceFunction option to specify a metric to be computed.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
MaxColorDistance can specify the maximum allowed distance between colors:

https://wolfram.com/xid/0yvz954hlhjm-tjh9d6

https://wolfram.com/xid/0yvz954hlhjm-z03l7d

Increase the maximum distance to match more colors to red:

https://wolfram.com/xid/0yvz954hlhjm-tcu07f

The default distance threshold might not always provide a match:

https://wolfram.com/xid/0yvz954hlhjm-y63lsr

https://wolfram.com/xid/0yvz954hlhjm-lbgd9z

Use a higher MaxColorDistance to match a broader color range:

https://wolfram.com/xid/0yvz954hlhjm-4ohcwh

Properties & Relations (1)Properties of the function, and connections to other functions
In certain functions, setting MaxColorDistance is the same as giving a range in ColorsNear:

https://wolfram.com/xid/0yvz954hlhjm-vqew63


https://wolfram.com/xid/0yvz954hlhjm-dxa7fw

Wolfram Research (2019), MaxColorDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxColorDistance.html.
Text
Wolfram Research (2019), MaxColorDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxColorDistance.html.
Wolfram Research (2019), MaxColorDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/MaxColorDistance.html.
CMS
Wolfram Language. 2019. "MaxColorDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MaxColorDistance.html.
Wolfram Language. 2019. "MaxColorDistance." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MaxColorDistance.html.
APA
Wolfram Language. (2019). MaxColorDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MaxColorDistance.html
Wolfram Language. (2019). MaxColorDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MaxColorDistance.html
BibTeX
@misc{reference.wolfram_2025_maxcolordistance, author="Wolfram Research", title="{MaxColorDistance}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/MaxColorDistance.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_maxcolordistance, organization={Wolfram Research}, title={MaxColorDistance}, year={2019}, url={https://reference.wolfram.com/language/ref/MaxColorDistance.html}, note=[Accessed: 29-March-2025
]}