Function PreparedBrettel1997Dichromat.transform

Applies the prepared transform to one linear-light sRGB color.

LinearSRgb!T transform(
  LinearSRgb!T color
) const pure nothrow @nogc @safe;

Example

const prepared =
    prepareBrettel1997Dichromat!double(
        CvdDeficiency.protan
    );

const transformed =
    prepared.transform(
        LinearSRgbd(0.2, 0.4, 0.7)
    );

assert(
    transformed ==
    LinearSRgbd(0.2, 0.4, 0.7)
        .brettel1997Dichromat(
            CvdDeficiency.protan
        )
);