Checks whether a string is a valid colour representation.

is_colour(x)

Arguments

x

a string

Value

a boolean

Examples

if (FALSE) {
is_colour("red")
is_colour("#12345")
}