Replaces vector drawing of showParticle
with a rendered sprite.
- Try to avoid slowdown seen in video by adding a circle that fades in over the particles, but that interacts with the blendMode in funny ways.
- Find one I liked and swaped in a second image right before particle death.
Video Info
coding train link: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/4-particles/4-particle-textures video in playlist: https://www.youtube.com/watch?v=pUhv2CA0omA&list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM&index=37 code: https://editor.p5js.org/codingtrain/sketches/TTVoNt58T
Instructions
The wind direction changes based on the x location of the mouse.
- "l" to start or stop the the running sketch
- "s" to save a single frame
- "r" to record a burst of frames.