2023-02-17 11:06:01 +01:00

22 lines
548 B
JavaScript

import { OptionsColor } from "tsparticles-engine";
export class LinksShadow {
constructor() {
this.blur = 5;
this.color = new OptionsColor();
this.color.value = "#000";
this.enable = false;
}
load(data) {
if (!data) {
return;
}
if (data.blur !== undefined) {
this.blur = data.blur;
}
this.color = OptionsColor.create(this.color, data.color);
if (data.enable !== undefined) {
this.enable = data.enable;
}
}
}