UNPKG

385 BJavaScriptView Raw
1import { ColorAnimation } from "./ColorAnimation";
2export class HslAnimation {
3 constructor() {
4 this.h = new ColorAnimation();
5 this.s = new ColorAnimation();
6 this.l = new ColorAnimation();
7 }
8 load(data) {
9 if (!data) {
10 return;
11 }
12 this.h.load(data.h);
13 this.s.load(data.s);
14 this.l.load(data.l);
15 }
16}