Skip to main content
Inspiring
November 26, 2019
Answered

Particles.js include?

  • November 26, 2019
  • 1 reply
  • 605 views

Hello,

 

Has anyone ever used an external library like Particles.js?

https://vincentgarreau.com/particles.js/

I have tried adding variety of ways:

 

  1. add the library to the global action panel, and then call the attribute script on a frame (pointing to a movieclip on the stage to apply the effect)
  2. loading the library in the head manually, and embeding the script on the HTML template page, keeping the frame on the stage as the target for the effect)
  3. calling the script with jQuery, and then loading the attribute script on complet.

 

...nothing seems to do the trick. Any suggestions?

 

 

This topic has been closed for replies.
Correct answer ClayUUID

CreateJS manages the canvas in HTML5 Canvas documents. Anything drawn directly to the same canvas element that CreateJS uses will get clobbered. This particle script is written to draw directly to a canvas element. It is not written to use the CreateJS API to draw into a movieclip. So it's not going to work without some surgery.

1 reply

ClayUUIDCorrect answer
Legend
November 26, 2019

CreateJS manages the canvas in HTML5 Canvas documents. Anything drawn directly to the same canvas element that CreateJS uses will get clobbered. This particle script is written to draw directly to a canvas element. It is not written to use the CreateJS API to draw into a movieclip. So it's not going to work without some surgery.