farver (version 1.1.0)

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

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<U+00B0> and CIE 1964 10<U+00B0> chromaticity coordinates.

Usage

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

Run this code
# NOT RUN {
# Using names
as_white_ref('D65')

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

Run the code above in your browser using DataCamp Workspace