Closed jcyuan closed 3 years ago
I'd like to have an effect: generate particle with alpha = 0, then fade in, then fade out...
A lot late, but I found the solution elsewhere. Here is the code:
emitter.setAlpha(function (p, k, t) { return 1 - 2 * Math.abs(t - 0.5); });
I'd like to have an effect: generate particle with alpha = 0, then fade in, then fade out...