Paulo Cardoso wrote:
> 
> How can I convert from 8-bit RGB color to [0-1] interval (sRGB)  and
> vice-versa?
> 

If you have the R/G/B values separately, divide by 255, and use function rgb
in grDevices. If you have the hex values, paste these into a string, and use
something like

col2rgb("#2C312C") 

Dieter

-- 
View this message in context: 
http://www.nabble.com/Convert-RGB-sRBG-tp24163348p24165915.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to