MCPcopy Create free account
hub / github.com/pollinations/pollinations / renderPaddedIcon

Function renderPaddedIcon

tools/icons/src/render.js:58–60  ·  view source on GitHub ↗
(svg, size, color, fraction = 0.65)

Source from the content-addressed store, hash-verified

56
57/** "any" PWA icon: logo with a margin (so rounding never crops), transparent. */
58export function renderPaddedIcon(svg, size, color, fraction = 0.65) {
59 return compose(svg, { width: size, logoColor: color, fraction });
60}
61
62/** apple-touch / maskable icon: padded logo on a solid (opaque) background. */
63export function renderSolidIcon(svg, size, { bg, logoColor, fraction = 0.62 }) {

Callers 2

render.test.jsFile · 0.90
generateFunction · 0.90

Calls 1

composeFunction · 0.85

Tested by

no test coverage detected