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:

Introduced in 2014
 (10.0)