Re: [css3-background] Where we are with Blur value discussion

As a contribution to the discussion, here's a hand-rolled
implementation of gaussian blur you can play with to get a sense for
how exactly it works.

http://www.xanthir.com/etc/blurplay/

It appears that just halving the length gives a good sigma for lengths
40px or less, but that approximation gradually becomes worse as the
blur gets larger (you gradually want something larger than half the
length).

~TJ

(By the way, I can see why gaussians are so sucky to work with.  I was
getting detectable floating-point errors nearly the entire time, which
were visible to the naked eye once the stdev topped 30 or so.  I had
to contort my computations to keep decent accuracy.)

Received on Friday, 16 July 2010 01:36:58 UTC