@tsparticles/engine
Version:
Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.
22 lines (21 loc) • 679 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HslAnimation = void 0;
const ColorAnimation_js_1 = require("./ColorAnimation.js");
const TypeUtils_js_1 = require("../../Utils/TypeUtils.js");
class HslAnimation {
constructor() {
this.h = new ColorAnimation_js_1.ColorAnimation();
this.s = new ColorAnimation_js_1.ColorAnimation();
this.l = new ColorAnimation_js_1.ColorAnimation();
}
load(data) {
if ((0, TypeUtils_js_1.isNull)(data)) {
return;
}
this.h.load(data.h);
this.s.load(data.s);
this.l.load(data.l);
}
}
exports.HslAnimation = HslAnimation;