MCPcopy
hub / github.com/mudler/LocalAI / initParticles

Function initParticles

core/http/static/p2panimation.js:75–79  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

73}
74
75function initParticles(num) {
76 for (let i = 0; i < num; i++) {
77 particles.push(new Particle(Math.random() * canvas.width, Math.random() * canvas.height));
78 }
79}
80
81function animate() {
82 ctx.clearRect(0, 0, canvas.width, canvas.height);

Callers 1

p2panimation.jsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected