Skip to content

Instantly share code, notes, and snippets.

@wisniewski94
wisniewski94 / definition.js
Created November 10, 2022 21:02
Declarative Shadow DOM Experiment
const range = (min, max) => (min - max) * Math.random() + max;
class Particle {
constructor(x, y, canvas) {
this.setPhysics();
this.setDimensions();
this.setGraphics();
this.x = x;
this.y = y;
this.canvas = canvas;