[R] "rgb()" problem

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Fri Jul 26 11:17:57 CEST 2019


On Fri, 26 Jul 2019 08:27:07 +0000
"Röver, Christian" <christian.roever using med.uni-goettingen.de> wrote:

> The apparently buggy version in this case seems to return white
> instead of red.

I think it's red, but fully transparent. Alpha follows the same rules
as red, green and blue components; it is expected to be in range [0;
maxColorValue]. rgb(255, 128, 128, alpha=128, maxColorValue=255) should
give you the expected result.

-- 
Best regards,
Ivan



More information about the R-help mailing list