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

Function renderFavicon

tools/icons/src/render.js:53–55  ·  view source on GitHub ↗
(svg, size, color)

Source from the content-addressed store, hash-verified

51
52/** Favicon: logo fills the square, transparent background. */
53export function renderFavicon(svg, size, color) {
54 return compose(svg, { width: size, logoColor: color, fraction: 1 });
55}
56
57/** "any" PWA icon: logo with a margin (so rounding never crops), transparent. */
58export function renderPaddedIcon(svg, size, color, fraction = 0.65) {

Callers 2

render.test.jsFile · 0.90
generateFunction · 0.90

Calls 1

composeFunction · 0.85

Tested by

no test coverage detected