This README provides an overview and instructions for two scripts: one HTML file that runs in a browser and one JavaScript file that can be run in the p5.js editor. Both scripts implement a particle system with similar functionality.
HTML File
The HTML file includes an embedded script that uses the p5.js library to create and display a particle system. The particles move in circular patterns with dynamic scaling and fading trails.
-
Prerequisites:
- A web browser with JavaScript enabled.
- Internet connection to load the p5.js library from CDN.
-
Steps to Run:
- Open the
index.html
file in any web browser. - Play the animation directly in your browser using the following URL: Play Whirlpool
- Open the
p5.js Script
The p5.js script file Script1.js
creates a particle system with circular motion and dynamic trails. It is designed to run in the p5.js editor.
-
Prerequisites:
- p5.js editor or a local p5.js setup.
-
Steps to Run:
- Open the
Script1.js
file in the p5.js editor or include it in an HTML file set up to run p5.js sketches.
- Open the