Build RGB-to-XYZ matrices from primaries + white
make_rgb_xyz_matrices(
primaries = list(r = c(0.713, 0.293), g = c(0.165, 0.83), b = c(0.128, 0.044)),
white_xy = c(0.32168, 0.33767)
)List with 3x3 numeric matrices: rgb_to_xyz, xyz_to_rgb.
Default list(r=c(0.713,0.293), g=c(0.165,0.830), b=c(0.128,0.044)). xy chromaticities (AP1).
Default c(0.32168,0.33767). White xy (D60).