UNPKG

tsparticles

Version:

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

31 lines (30 loc) 808 B
export class CharacterShape { constructor() { this.fill = false; this.font = "Verdana"; this.style = ""; this.value = "*"; this.weight = "400"; this.fill = true; this.close = true; } load(data) { if (data !== undefined) { if (data.fill !== undefined) { this.fill = data.fill; } if (data.font !== undefined) { this.font = data.font; } if (data.style !== undefined) { this.style = data.style; } if (data.value !== undefined) { this.value = data.value; } if (data.weight !== undefined) { this.weight = data.weight; } } } }