async function show(blur, text) {
const context = DOM.context2d(width, height);
await Promises.delay(Math.random() * 1000);
const grd = context.createLinearGradient(0, 0, width, 0);
for (let i = 0; i < 1; i += .1) grd.addColorStop(i, d3.interpolateInferno(i));
context.lineWidth = 15;
const radius = 5;
context.font = "30px Arial";
const a = performance.now();
for (let i = 0; i < 100; i++) {
context.clearRect(0, 0, width, height);
blur(context, () => context.fillText(text, 100, 100), 2.5);
blur(context, () => context.stroke(path), radius);
context.translate(0, 40);
context.strokeStyle = "red";
blur(context, () => context.stroke(path), radius);
context.translate(0, 40);
context.strokeStyle = grd;
blur(context, () => context.stroke(path), radius);
context.translate(0, -80);
}
context.font = "11px Arial";
context.fillText(
`${Math.round(performance.now() - a)}ms / ${100}`,
10,
height - 20
);
return context.canvas;
}