Learn R Programming

munsellinterpol (version 2.2-1)

xyz2srgb: Convert XYZ coordinates to sRGB

Description

xyz2srgb Converts XYZ coordinates to sRGB. This function is here only because package colorscience requires it. A better function - RGBfromXYZ() - is now in spacesRGB.

Usage

xyz2srgb(XYZ)

Arguments

XYZ

XYZ coordinates

Value

sRGB coordinates

References

Logicol S.r.l., 2014 EasyRGB color search engine http://www.easyrgb.com/

See Also

RGBfromXYZ()

Examples

Run this code
# NOT RUN {
xyz2srgb(c(0.310897, 0.306510, 74.613450))
# }

Run the code above in your browser using DataLab