Just a small test to recreate the Windows 11 Fluent design UI.
You can see it process the image by turning on Visible Stepping.
I wish there was a library to blur images super quickly.
Just a small test to recreate the Windows 11 Fluent design UI.
You can see it process the image by turning on Visible Stepping.
I wish there was a library to blur images super quickly.
That doesn't do anything (for me).
You may try convolution filters as described
Ot scale down and up to engage smoothing

I couldn't seem to figure it out. It just turned the image into a bunch of wavy lines.
I do that already, but I don't like the way it smooths it.
Really? I started with this costume:
It's not blurry enough, I want something like the Gaussian Blur
Well, the article gives an algorithm...
But you could probably get something good enough by using a simpler weighting. Something like
And if you want to do a really good job, take the result of this horizontal blurring, exchange rows and columns, do this computation again, then exchange rows and columns back, to get a vertical blurring. (As that article says, one big advantage of a Gaussian weighting is that doing horizontal and vertical blurring in two separate steps as I'm suggesting is mathematically equivalent to doing a two-dimensional blurring all at once, which is what you really want but is too complicated to compute. So instead of my linear weightings 1, 0.9, 0.8 you could look up the actual correct values for a Gaussian distribution, which are given in the article.)
This takes too long to compute to use it every frame. Maybe there should be an official library that uses javascript to blur images.
I'm not entirely convinced that rewriting it in JS would do better at speeding it up than coding the optimizations I suggested. SInce hyperblocks, we are really pushing JS speed.
Then how come some webpages use this effect for the title bar and can be updated every frame using javascript?
Because they write optimized JS, not trivial JS the way I wrote trivial Snap! rather than optimized Snap!. At least maybe.
Image blurring seems a little specialized for a library. Maybe a more general graphic effects library would be more interesting.