Adjust animation timing
This commit is contained in:
parent
80e1d97624
commit
63c677de3d
18
src/main.ts
18
src/main.ts
@ -84,24 +84,24 @@ function render() {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
const qTrackK = new Track([
|
const qTrackK = new Track([
|
||||||
{ time: 4.5, value: [100, 610] },
|
{ time: 5.0, value: [100, 610] },
|
||||||
{ time: 5.0, value: [100, 75] },
|
{ time: 5.5, value: [100, 75] },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const qTrackE = new Track([
|
const qTrackE = new Track([
|
||||||
{ time: 5.0, value: [450, -500] },
|
{ time: 5.5, value: [450, -500] },
|
||||||
{ time: 5.5, value: [450, 75] },
|
{ time: 6.0, value: [450, 75] },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const qTrackA = new Track([
|
const qTrackA = new Track([
|
||||||
{ time: 5.5, value: [800, 610] },
|
{ time: 6.0, value: [800, 610] },
|
||||||
{ time: 6.0, value: [800, 75] },
|
{ time: 6.5, value: [800, 75] },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const bgTrack = new Track([
|
const bgTrack = new Track([
|
||||||
{ time: 0, value: [0.0, 0.0, 0.0] },
|
{ time: 0, value: [0.0, 0.0, 0.0] },
|
||||||
{ time: 3, value: [0.0, 0.0, 0.0] },
|
{ time: 4.5, value: [0.0, 0.0, 0.0] },
|
||||||
{ time: 4, value: [0.22745, 0.35294, 0.25098] },
|
{ time: 5.0, value: [0.22745, 0.35294, 0.25098] },
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const timeline = new Timeline({
|
const timeline = new Timeline({
|
||||||
@ -112,7 +112,7 @@ function render() {
|
|||||||
"position4": qTrackE,
|
"position4": qTrackE,
|
||||||
"position5": qTrackA,
|
"position5": qTrackA,
|
||||||
"backgroundColor": bgTrack
|
"backgroundColor": bgTrack
|
||||||
}, 8, true);
|
}, 9.5, true);
|
||||||
|
|
||||||
const fragmentColorUniform = gl.getUniformLocation(program, "uColor");
|
const fragmentColorUniform = gl.getUniformLocation(program, "uColor");
|
||||||
const canvasSizeUniform = gl.getUniformLocation(program, "uCanvasSize");
|
const canvasSizeUniform = gl.getUniformLocation(program, "uCanvasSize");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user