drawcall / Proton

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

Proton emitter - DOM Renderer - particles with ID names‏ #16

Closed Kfhonics closed 7 years ago

Kfhonics commented 9 years ago

Hey Im using your proton emitter for the DOM Renderer.

Simple question: How can I emit particles with ID names?

var particle = document.getElementById("particle") emitter.addInitialize(new Proton.ImageTarget(particle));

It would be amazing if your engine can do so.

Let me know

Kfhonics commented 8 years ago

anyone?

drawcall commented 8 years ago

I'm sorry I did not see your question. Proton.ImageTarget need to pass is an Image object. You are correct . Thank you very much