Try this: col2rgb("#2C312C")
On Tue, Aug 12, 2008 at 4:22 PM, rostam shahname <[EMAIL PROTECTED]> wrote: > Hi, > I have three matrices, Red, Green and Blue. I would like to produce a matrix > which is the combined values of Red, Green and Blue matrices. > I know rgb() does the job, but the values are not between 0-255, they are in > the following format: > "#2C312C" > I would like to have the values between 0-255. > I wonder if you could tell me what I can do... > > Thanks for your help, > Rostam > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O ______________________________________________ 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.