XYZtoRGB: convert from XYZ coordinates to RGB

Description Usage Arguments Value Author(s) Source References Examples

View source: R/colorscience.R

Description

XYZtoRGB convert from XYZ coordinates to RGB.

Usage

1
2
XYZtoRGB(xc, yc, zc, ColorSystem = c(0.67, 0.33, 0.21, 0.71,
                 0.14, 0.08, 0.31, 0.316)) 

Arguments

xc

XYZ X coordinates

yc

XYZ Y coordinates

zc

XYZ Z coordinates

ColorSystem

RGB Color System data

Value

RGB coordinates

Author(s)

Jose Gama

Source

Bruce Justin Lindbloom, 2014 http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_T.html

References

Bruce Justin Lindbloom, 2014 http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_T.html

Examples

1
XYZtoRGB(0.11465380, 0.08391198, 0.08222077)

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, round.POSIXt, trunc.POSIXt, units

Loading required package: munsellinterpol
Loading required package: geometry
Loading required package: magic
Loading required package: abind
Loading required package: pracma

Attaching package: 'pracma'

The following object is masked from 'package:munsellinterpol':

    hypot

The following objects are masked from 'package:geometry':

    dot, polyarea

The following object is masked from 'package:magic':

    magic

The following object is masked from 'package:Hmisc':

    ceil

Loading required package: sp

Attaching package: 'colorscience'

The following objects are masked from 'package:munsellinterpol':

    XYZ2xyY, xyY2XYZ

             R          G         B
[1,] 0.1364257 0.04340101 0.1009599

colorscience documentation built on Oct. 30, 2019, 9:33 a.m.