Function prepareVienot1999Dichromat
Prepares one ViƩnot 1999 protan/deutan transform for repeated use.
PreparedVienot1999Dichromat!T prepareVienot1999Dichromat(T)(
RedGreenCvdDeficiency deficiency
) pure nothrow @nogc @safe
if (is(T == float) || is(T == double));
Example
const prepared =
prepareVienot1999Dichromat!double(
RedGreenCvdDeficiency .deutan
);
const transformed =
prepared .transform(
LinearSRgbd(0.2, 0.4, 0.7)
);
assert(
transformed ==
LinearSRgbd(0.2, 0.4, 0.7)
.vienot1999Dichromat(
RedGreenCvdDeficiency .deutan
)
);