Should look like the whole shape explodes, but build itself back together. If it’s not possible with an SVG, what would be the easiest way to do something like this?
Now what’s the best way to make them drift apart and back togther? I guess I’ll need 8 different directions, does someone know an example for that? Does not have to be with SVGs, can be all kinds of objects.
Thank you very much, but I know how to make them move, I was kind of looking for an example that really looks like an explosion, so I have something to lean on.
That is my shape, and I want to make these poligons drift apart in every direction. I guess I have an idea how to do that either, but it seems quite laborious and so I was hoping someone already has a smart solution for this
well, processing is not illustrator or after effects so often you need to do that “laborious” job. And I don’t think there is a perfect example that does “explosion” effect that you can copy and paste to use in your code.
Dan made a fireworks example in p5.js and processing
also moving particles from a text (p5.js)
Like the fireworks example, I would start with moving polygons outward from the center point. But I can imagine that this will be too predictable so you may want to add physics library to account mass, torque etc, for example. And of course, if you have specific questions you can come back to ask. Good luck!