UNPKG

tsparticles

Version:

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

21 lines (20 loc) 503 B
export class RotateAnimation { constructor() { this.enable = false; this.speed = 0; this.sync = false; } load(data) { if (data !== undefined) { if (data.enable !== undefined) { this.enable = data.enable; } if (data.speed !== undefined) { this.speed = data.speed; } if (data.sync !== undefined) { this.sync = data.sync; } } } }