Perticle Emitters: How to fade particles in from 0, then back out to 0

The title is the question.

emitter.setAlpha(function (p, k, t) {
  return 1 - 2 * Math.abs(t - 0.5);
});
4 Likes

OMG you can pass functions !!! Thanks!
:metal: