make_rgb_xyz_matrices: Build RGB-to-XYZ matrices from primaries + white

View source: R/colorspace_descriptors.R

make_rgb_xyz_matricesR Documentation

Build RGB-to-XYZ matrices from primaries + white

Description

Build RGB-to-XYZ matrices from primaries + white

Usage

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)
)

Arguments

primaries

Default list(r=c(0.713,0.293), g=c(0.165,0.830), b=c(0.128,0.044)). xy chromaticities (AP1).

white_xy

Default c(0.32168,0.33767). White xy (D60).

Value

List with 3x3 numeric matrices: rgb_to_xyz, xyz_to_rgb.


rayimage documentation built on June 12, 2026, 5:06 p.m.