UNPKG

tsparticles

Version:

Porting of the abandoned Vincent Garreau's particles.js, converted in TypeScript. Added many new cool features and various bug fixes.

22 lines (21 loc) 446 B
export class Slow { constructor() { this.factor = 1; this.radius = 0; } get active() { return false; } set active(value) { } load(data) { if (data !== undefined) { if (data.factor !== undefined) { this.factor = data.factor; } if (data.radius !== undefined) { this.radius = data.radius; } } } }