MCPcopy Create free account
hub / github.com/breck7/scroll / blurfImage

Function blurfImage

external/.d3.js:163–172  ·  view source on GitHub ↗
(radius)

Source from the content-addressed store, hash-verified

161}
162
163function blurfImage(radius) {
164 const blur = blurf(radius);
165 return (T, S, start, stop, step) => {
166 start <<= 2, stop <<= 2, step <<= 2;
167 blur(T, S, start + 0, stop + 0, step);
168 blur(T, S, start + 1, stop + 1, step);
169 blur(T, S, start + 2, stop + 2, step);
170 blur(T, S, start + 3, stop + 3, step);
171 };
172}
173
174// Given a target array T, a source array S, sets each value T[i] to the average
175// of {S[i - r], …, S[i], …, S[i + r]}, where r = ⌊radius⌋, start <= i < stop,

Callers

nothing calls this directly

Calls 2

blurfFunction · 0.85
blurFunction · 0.85

Tested by

no test coverage detected