17 lines
385 B
JavaScript
17 lines
385 B
JavaScript
import { ColorAnimation } from "./ColorAnimation";
|
|
export class HslAnimation {
|
|
constructor() {
|
|
this.h = new ColorAnimation();
|
|
this.s = new ColorAnimation();
|
|
this.l = new ColorAnimation();
|
|
}
|
|
load(data) {
|
|
if (!data) {
|
|
return;
|
|
}
|
|
this.h.load(data.h);
|
|
this.s.load(data.s);
|
|
this.l.load(data.l);
|
|
}
|
|
}
|