drawcall / Proton

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

support for offscreen canvas #81

Closed ape-casear closed 4 years ago

ape-casear commented 4 years ago

truly want the support for offscreen canvas

drawcall commented 4 years ago

Oh, did you mean OffscreenCanvas? Proton can easily extend your own Custom renderer, I think it should not be complicated

ape-casear commented 4 years ago

@drawcall yes, I create a custom class Image in the WebWorker which results in an ImageBitMap for "ctx.drawImage". and it works;