In colorspace.R I see: setAs("color", "LAB", function(from) LAB(.Call("as_LAB", from@coords, class(from), .WhitePoint, PACKAGE = " colorspace"), names = dimnames(from@coords)[[1]])) ... .WhitePoint = NULL
and then in colorspace.c and the function CheckWhite(), I see that .WhitePoint = NULL is converted to D65. I would like to pass a different .WhitePoint to as( XYZ( 100,100,100) , "LAB" ) I have tried 3 methods: as( XYZ( 100,100,100) , "LAB", .WhitePoint=XYZ(95,100,105) ) .WhitePoint = XYZ(95,100,105) assign( ".WhitePoint", XYZ(95,100,105), env=as.environment('package: colorspace') ) but all fail, for different reasons. How can I transform XYZ to LAB using a whitepoint different than D65 ? Thanks, Glenn Davis gda...@gluonics.com [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.