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

particles

Here are 494 public repositories matching this topic...

tsparticles
matteobruni
matteobruni commented Mar 30, 2020

I think that some orbit options to make them appear around particles should be cool to see, maybe more than 1 orbit, with different radius and angle (0 to Math.PI to detect the distortion, at Math.PI / 2 it should be a straight line cutting the particle in half and the satellite, if present, should go only up and down, at 0 and Math.PI the orbit is circular)

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.