<svg class="canvas" viewBox="0 0 200 200"></svg>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
display: grid;
place-items: center;
background: hsl(0, 0%, 96%);
}
.canvas {
width: 75vmin;
height: 75vmin;
background: hsl(0, 0%, 100%);
}
import { SVG } from "https://cdn.skypack.dev/@svgdotjs/svg.js";
import {
random,
map,
spline,
pointsInPath
} from "https://cdn.skypack.dev/@georgedoescode/generative-utils@1.0.0";
const svg = SVG(".canvas");
// Do your thing! 🚀
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.