Density gradients

Working prototype!