Free Particle Editor Module for Spiral Galaxies

Could you explain a bit how your shader works, especially what the function your are using in your screenshot does ?
Thank you in advance.