isColor

Detect whether T is a color type compatible with std.experimental.color.

enum isColor (
T
)

Examples

import std.experimental.color.rgb;
import std.experimental.color.hsx;
import std.experimental.color.xyz;

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

Meta