Published
Edited
Aug 8, 2022
2 forks
18 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
// Create an empty SVG element to which svg2rough.js can populate
const el = html`<svg>`;

const svgConverter = new svg2rough.Svg2Roughjs(el);
svgConverter.backgroundColor = "white";
svgConverter.pencilFilter = pencilFilter;
svgConverter.randomize = randomize;
svgConverter.svg = svgLogo;
svgConverter.roughConfig = {
bowing,
roughness,
fillStyle
};
svgConverter.sketch();

return el;
}
Insert cell
Insert cell
svg2rough = import("https://cdn.skypack.dev/svg2roughjs@3.0.1?min")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more