UNPKG

tsparticles

Version:

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

18 lines (17 loc) 468 B
import { BackgroundMaskCover } from "./BackgroundMaskCover"; export class BackgroundMask { constructor() { this.cover = new BackgroundMaskCover(); this.enable = false; } load(data) { if (data !== undefined) { if (data.cover !== undefined) { this.cover.load(data.cover); } if (data.enable !== undefined) { this.enable = data.enable; } } } }