แม่แบบ:Shade/bgcolor
หน้าตา
FFFFFF
![Documentation icon](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 RGB hex triplet naively blended over a (by default) white background, i.e.
The visual properties of a naive (nonlinear) sRGB blend is that color blending with greyscales mostly "work" visually.[1]
{{Shade/bgcolor |r = <!-- red color component: 0-255 (default=0) --> |g = <!-- green color component: 0-255 (default=0) --> |b = <!-- blue color component: 0-255 (default=0) --> |a = <!-- color transparency factor: 0.0-1.0 (default=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) --> }}
ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ หน้าย่อยของแม่แบบนี้ |
- ↑ "Color gradient algorithm". Stack Overflow. สืบค้นเมื่อ 2021-07-21.