UNPKG

tsparticles

Version:

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

13 lines (12 loc) 244 B
export class Color { constructor() { this.value = "#fff"; } load(data) { if (data !== undefined) { if (data.value !== undefined) { this.value = data.value; } } } }