Federated wiki uses gradients for flags but has struggled to create png files server side. Here we explore constructing svg strings for the same purpose. mdn
`<svg width="32" height="32" version="1.1" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="g2" x1=".2" y1="0" x2=".8" y2="1"> <stop offset="0%" stop-color="cornflowerblue"/> <stop offset="100%" stop-color="gold"/> </linearGradient> </defs> <rect x="0" y="0" width="32" height="32" fill="url(#g2)"/> </svg>`
http://js.ward.asia.wiki.org/assets/pages/snippet-template/basicjs.html?snippet-template HEIGHT 400