@grid: 1 / 100vw 100vh;
background: #412b91 @doodle600.wrap(
position: absolute;
inset: -20%;
background: @svg(
viewBox: 0 0 600 600 p 120;
fill: #fff;
circle*10x10 {
cx: $((nx - .5 + @r(±.35)) * 60);
cy: $((ny - .5 + @r(±.35)) * 60);
r: @p(0, 1.5, 1.8, 2.1);
}
g*5x6 {
stroke: #fff;
stroke-width: 1.2;
--ox: $((nx - .5 + ny % 2 / 2) * 120 + @r(±16));
--oy: $((ny - .5) * 100 + @r(±16));
--m: @p(2 x3, 4 x2, 3);
--a: @r(2π);
--R: @r(20, 32);
--core: M;
g*$m {
--t: $(a + n * 2π / m + @r(±.3));
--k: $(R * @r(.8, 1.25));
--x, --y: $(ox + k * cos(t)), $(oy + k * sin(t));
--core: $core $x,$y;
g*$(min(2, floor(@r(8) / m) + (n == 1))) {
--qx, --qy: $x, $y;
--d: $(t + (n - (N + 1) / 2) * 1.2 + @r(±.3));
g*@p(1, 2, 2, 3, 3) {
--l: @r(16, 48);
--ex, --ey: $(qx + l * cos(d)), $(qy + l * sin(d));
@match(hypot(ex - ox, ey - oy) < 62) {
line { x1: $qx; y1: $qy; x2: $ex; y2: $ey }
circle { cx: $ex; cy: $ey; r: @p(2, 2.4 x2, 2.8, 4.6) }
--qx, --qy: $ex, $ey;
}
--d: $(clamp(d + @r(±.6), t - .9, t + .9));
}
}
circle { cx: $x; cy: $y; r: @p(2, 2.4, 2.8, 4.6) }
}
path { d: $core z; fill: none }
}
);
);