IsColor
Tests if an object is a colour.
Syntax
-
IsColor(X)
-
X
is any object
-
Description
IsColor(X)
returns true
iff X
is a colour object.
Examples
IsColor(π)
false
IsColor("red")
false
IsColor(color("darkgoldenrod"))
true
IsColor(hsv(120, 0.4, 0.6))
true
IsColor(IdentityMatrix(5))
false