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) 403 B
export class RandomSize { constructor() { this.enable = false; this.minimumValue = 1; } load(data) { if (data !== undefined) { if (data.enable !== undefined) { this.enable = data.enable; } if (data.minimumValue !== undefined) { this.minimumValue = data.minimumValue; } } } }