drawcall / Proton

Javascript particle animation library
https://drawcall.github.io/Proton/
MIT License
2.42k stars 275 forks source link

Change radius of particles in the renderer example? #75

Closed weiwanghasbeenused closed 4 years ago

weiwanghasbeenused commented 4 years ago

Hi there. First of all, thanks for this amazing library. I was trying to do something very similar to pixelrenderer-2. Everything went well but one issue left for me: how to make the particles larger?

I have tried adding emitter.addInitialize(new Proton.Radius(5)); , which does it in other examples, in createProton(). However that didn't work.

I have been messing with the code for a while but got no luck. Now I wonder if it's possible... Please let me know how to do this. Thanks in advance!

fantasticsoul commented 4 years ago

is this answer you want: https://github.com/drawcall/Proton/issues/69

weiwanghasbeenused commented 4 years ago

@fantasticsoul Awesome! thanks a lot. Gonna try it asap.