particles.js
particles.js copied to clipboard
How to rotating polygon particles x deg?
I want to rotate hexagon shape 30 degree but how?
Did you figure out how to rotate the shapes? I am in need of the same.
Unfortunately no.
I've figured out how... with a hack to particles.js. In the drawShape function add this for a 30 degree rotation.
c.rotate(30*Math.PI/180)
Just add it somewhere above the for loop.
How about a continuing rotation or maybe I a loop rotation. (forgive me I'm new at this and I'm old lol
@artfauxlive this library does not support rotation, try https://github.com/matteobruni/tsparticles, it can animate it too