UNPKG

tsparticles

Version:

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

17 lines (16 loc) 392 B
export class Repulse { constructor() { this.distance = 200; this.duration = 0.4; } load(data) { if (data !== undefined) { if (data.distance !== undefined) { this.distance = data.distance; } if (data.duration !== undefined) { this.duration = data.duration; } } } }