density = strength ⋅ ( 1 − ( min (distance, radius) radius ) 2 ) 2 {\displaystyle {\text{density}}={\text{strength}}\cdot \left(1-\left({\frac {\text{min (distance, radius)}}{\text{radius}}}\right)^{2}\right)^{2}}