rc-1.2.1 - new patterns and refactoring #36

Merged
bombinans merged 8 commits from rc-1.2.1 into main 2025-04-20 06:04:44 +00:00
Showing only changes of commit 3a9d2190ba - Show all commits

View File

@ -156,13 +156,14 @@ function poptimal_svg(params) {
params.patterns.map((p) => {
const dots = dm.dots(1 / p.m, p.n, false);
const rfunc = dm.radius(p.f);
const dots_g = svg.append("g")
.attr("id", `dots${p.i}`);
dots_g.selectAll("circle")
.data(dots)
.join("circle")
.attr("r", (d) => dm.radius(d, p.f, p.r))
.attr("r", (d) => rfunc(d, p.r))
.attr("fill", p.colour)
.attr("cx", (d) => d.x)
.attr("cy", (d) => d.y);