Give all your svg's a cute hand-drawn feel.
Works server and client side. Accepts raw html files and DOM elements.
Usage
const svg = document;const raw = `<!DOCTYPE html><html> <body> <svg viewBox="0 0 10 10"> <rect width="3" height="5" /> </svg> </body></html>` const options = roughness: 5 fillStyle: 'dots'const lambda = { if nodetagName === 'rect' return stroke: 'blue' else if contextfill === 'pink' return false } // => string // => Element
API:
declare
This library is using the awesome roughjs