(svg, size, { bg, logoColor, fraction = 0.62 })
| 61 | |
| 62 | /** apple-touch / maskable icon: padded logo on a solid (opaque) background. */ |
| 63 | export function renderSolidIcon(svg, size, { bg, logoColor, fraction = 0.62 }) { |
| 64 | return compose(svg, { width: size, bg, logoColor, fraction }); |
| 65 | } |
| 66 | |
| 67 | // Tint an SVG and rasterize it to fit within w×h (transparent); return {buf,w,h}. |
| 68 | async function rasterize(svg, color, w, h) { |
no test coverage detected