Canvas Animation: Particle Emitter #1

An interactive particle emitter animation. At the centre of the page is a canvas element displaying particles emitted from the centre and moving outward in random directions. These particles are rendered as white squares on a dark, semi-transparent background, creating a dynamic and visually engaging effect.

The animation can be modified through two slider controls:

  • Particle Count: Adjusts the total number of particles displayed in the animation.

  • Max Particle Size: Determines the maximum size of individual particles.

The animation is powered by JavaScript and utilizes the requestAnimationFrame method. Particles are generated with randomized velocities and lifespans, adding to the natural and organic feel of the simulation. Each particle originates from the centre of the canvas and moves outward, fading away as it reaches the end of its life-cycle.

animation canvas javascript

Comments

New Comment

If you have a comment you'd like to share, feel free to leave it below. I moderate all comments before they are published. Markdown is enabled. See syntax for help.


I'll never share your email with anyone else.

Web Demos

My web demos exist as a playground for creating experiments written in HTML, CSS and JavaScript.

I have previously used CodePen for experimenting with HTML/CSS/JavaScript, but in the spirit of IndieWeb POSSE, I decided to start hosting my demos myself.

Folksonomy

I like tag all content on my site. See below for all tags used within my web demos.

Subscribe

Click the link below to subscribe to my Demo feed in your favourite news reader client:

RSS feed

Philip Newborough and a donkey enjoying a beer.

About

My name is and I’m a full stack web developer living and working in Lincoln, England. This website (philipnewborough.co.uk) serves as my personal homepage. When I’m not working with tech, I love to ride bicycles with my wife and friends.

← An IndieWeb Webring πŸ•ΈπŸ’ β†’