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) • 459 B
JavaScript
import { PolygonMaskMoveType } from "../../../Enums/PolygonMaskMoveType";
export class Move {
constructor() {
this.radius = 10;
this.type = PolygonMaskMoveType.path;
}
load(data) {
if (data !== undefined) {
if (data.radius !== undefined) {
this.radius = data.radius;
}
if (data.type !== undefined) {
this.type = data.type;
}
}
}
}