as_white_ref: Convert value to a tristimulus values normalised to Y=100

Description Usage Arguments Value Examples

View source: R/aaa.R

Description

This function can take either the name of a standardised illuminants, x and y chromaticity coordinates or X, Y, and Z tristimulus values and converts it to tristimulus values normalised to Y=100. All Illuminant series A-F are supported and can be queried both on the CIE 1931 2° and CIE 1964 10° chromaticity coordinates.

Usage

1
as_white_ref(x, fow = 2)

Arguments

x

A string giving the name of the standardized illuminant or a 2 (chromaticity) or 3 (trsitimulus) length numeric vector.

fow

The field-of-view for the illuminant - either 2 or 10

Value

A 3-length vector with tristimulus values

Examples

1
2
3
4
5
# Using names
as_white_ref('D65')

# Using chromaticity values
as_white_ref(c(0.3, 0.4))

farver documentation built on March 1, 2021, 1:06 a.m.