Struct PreparedMachado2009

Prepared Machado 2009 protan/deutan transform for repeated application.

struct PreparedMachado2009(T)
  
if (is(T == float) || is(T == double));

A valid value contains one severity-interpolated 3x3 matrix in the consumer scalar type. Use tryPrepareMachado2009 to construct it from runtime severity input.

.init is the documented invalid state. Its matrix coefficients are NaN, so applying it produces NaN components rather than a plausible transformed color.

Methods

NameDescription
transform (color) Applies the prepared transform to one linear-light sRGB color.
transformInto (input, output) Applies the prepared transform to fixed-cardinality caller-owned storage.
tryTransformInto (input, output) Applies the prepared transform to runtime-sized caller-owned storage.