isColorValue

Template for checking whether a type is a valid color value. Color values are what daffodil stores internally.

Any floating point type, unsigned integreal or valid :d:func:isCustomColorValue is a valid color value.

template isColorValue (
V
) {
enum isColorValue;
}

Examples

1 assert(isColorValue!ubyte);
2 assert(isColorValue!uint);
3 assert(isColorValue!ulong);
4 assert(!isColorValue!int);
5 assert(isColorValue!float);
6 assert(isColorValue!real);

Meta