particles.js icon indicating copy to clipboard operation
particles.js copied to clipboard

Rotation on particle

Open cedriccharles4 opened this issue 4 years ago • 3 comments

Hi there!

Thank you for this great library! Is there a way to rotate the particle randomly? I mean that right now, all my shapes have the same rotation. I would like to have a different rotation for each particule, to have something more random, like this: https://snipboard.io/N21pQ0.jpg

Thank you in advance, Cedric

cedriccharles4 avatar Aug 27 '20 13:08 cedriccharles4

Hi @cedriccharles4,

This library was abandoned years ago, I resumed this project some months ago and added other features, which includes the one you are asking.

The rebooted project is this: https://github.com/matteobruni/tsparticles

And you can see a working sample here:

  • https://codepen.io/matteobruni/pen/GRJLZye
  • https://codepen.io/matteobruni/pen/bGdomGq

matteobruni avatar Aug 27 '20 13:08 matteobruni

Hi @matteobruni !

Perfect, thank you 👍

cedriccharles4 avatar Aug 27 '20 14:08 cedriccharles4

Oh, I think this project has not been abandoned, on the contrary it is very powerful and convenient. Please respect the author.

lindelof avatar Sep 02 '20 06:09 lindelof