The Wayback Machine - https://web.archive.org/web/20201019204849/https://github.com/topics/particles
Skip to content
#

particles

Here are 533 public repositories matching this topic...

tsparticles
rschristian
rschristian commented Oct 16, 2020

I came across this lib while looking around the ol' particles.js stuff. Only, the current bundle size is well outside the realm of what I could reasonably consider: https://bundlephobia.com/result?p=preact-particles@1.18.4. To add a 50kb lib to Preact would be the antithesis of what it's trying to do really.

Are there any plans to remove old and bloated code/dependencies like Lodash and real

canvas-confetti
catdad
catdad commented Feb 22, 2019
function setupCanvas(canvas) {
  // Get the device pixel ratio, falling back to 1.
  var dpr = window.devicePixelRatio || 1;
  // Get the size of the canvas in CSS pixels.
  var rect = canvas.getBoundingClientRect();
  // Give the canvas pixel dimensions of their CSS
  // size * the device pixel ratio.
  canvas.width = rect.width * dpr;
  canvas.height = rect.height * dpr;

Improve this page

Add a description, image, and links to the particles topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the particles topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.