Adjust animation timing

This commit is contained in:
Keanu Taufan 2024-09-22 20:32:29 +07:00
parent 80e1d97624
commit 63c677de3d
No known key found for this signature in database
GPG Key ID: 1952D665A3A51BE0

View File

@ -84,24 +84,24 @@ function render() {
]);
const qTrackK = new Track([
{ time: 4.5, value: [100, 610] },
{ time: 5.0, value: [100, 75] },
{ time: 5.0, value: [100, 610] },
{ time: 5.5, value: [100, 75] },
]);
const qTrackE = new Track([
{ time: 5.0, value: [450, -500] },
{ time: 5.5, value: [450, 75] },
{ time: 5.5, value: [450, -500] },
{ time: 6.0, value: [450, 75] },
]);
const qTrackA = new Track([
{ time: 5.5, value: [800, 610] },
{ time: 6.0, value: [800, 75] },
{ time: 6.0, value: [800, 610] },
{ time: 6.5, value: [800, 75] },
]);
const bgTrack = new Track([
{ time: 0, value: [0.0, 0.0, 0.0] },
{ time: 3, value: [0.0, 0.0, 0.0] },
{ time: 4, value: [0.22745, 0.35294, 0.25098] },
{ time: 4.5, value: [0.0, 0.0, 0.0] },
{ time: 5.0, value: [0.22745, 0.35294, 0.25098] },
]);
const timeline = new Timeline({
@ -112,7 +112,7 @@ function render() {
"position4": qTrackE,
"position5": qTrackA,
"backgroundColor": bgTrack
}, 8, true);
}, 9.5, true);
const fragmentColorUniform = gl.getUniformLocation(program, "uColor");
const canvasSizeUniform = gl.getUniformLocation(program, "uCanvasSize");