drawcall / Proton

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

Size for emiiter #47

Closed anmol27katyani closed 7 years ago

anmol27katyani commented 7 years ago

The ability for an emitter to define a rectangle in which particles are created at random points, rather than a single point. How this is being handled with random points? Some suggestion please, Newbie here

drawcall commented 7 years ago

you can use

emitter.addInitialize(new Proton.Position(new Proton.RectZone(0, 0,100,100)));