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

Function tintLogo

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

Source from the content-addressed store, hash-verified

4
5/** The @pollinations/ui logo paints with fill:currentColor. */
6export function tintLogo(svg, color) {
7 return svg.replaceAll("currentColor", color);
8}
9
10function hexToRgb(hex) {
11 const m = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);

Callers 3

render.test.jsFile · 0.90
composeFunction · 0.85
rasterizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected