isColor

Detect whether T is a color type defined under std.color.

@safe pure nothrow @nogc
enum isColor (
T
)

Examples

static assert(isColor!RGB8 == true);
static assert(isColor!(XYZ!float) == true);
static assert(isColor!float == false);

Meta