rgb(({{{r}}}*{{{a}}}+{{{r_bg}}}*(1-{{{a}}})),({{{g}}}*{{{a}}}+{{{g_bg}}}*(1-{{{a}}})),({{{b}}}*{{{a}}}+{{{b_bg}}}*(1-{{{a}}})))
![]() | This is the template sandbox page for Template:Shade/bgcolor (diff). |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
Calculates an rgba naively blended over a (by default) white background, i.e.
{{Shade/bgcolor |r = <!-- red color component: 0-255 --> |g = <!-- green color component: 0-255 --> |b = <!-- blue color component: 0-255 --> |a = <!-- color transparency factor: 0.0-1.0 --> |r_bg = <!-- red background color component: 0-255 (default=255) --> |g_bg = <!-- green background color component: 0-255 (default=255) --> |b_bg = <!-- blue background color component: 0-255 (default=255) --> }}