ColorQ

ColorQ[color]

yields True if color is a valid color directive and False otherwise.

Details

Examples

open allclose all

Basic Examples  (2)

A valid color:

An expression with a color directive head that is not a valid color:

Scope  (2)

A valid RGBColor:

A valid RGBColor with transparency:

Validate an array of color directives:

Wolfram Research (2014), ColorQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorQ.html.

Text

Wolfram Research (2014), ColorQ, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorQ.html.

BibTeX

@misc{reference.wolfram_2021_colorq, author="Wolfram Research", title="{ColorQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ColorQ.html}", note=[Accessed: 22-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_colorq, organization={Wolfram Research}, title={ColorQ}, year={2014}, url={https://reference.wolfram.com/language/ref/ColorQ.html}, note=[Accessed: 22-October-2021 ]}

CMS

Wolfram Language. 2014. "ColorQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ColorQ.html.

APA

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