Compare commits

..

No commits in common. "57c830ac80fb3a0fe249f4a867c37ffeb210a8e2" and "80e1d97624337e7b08e2dbf4a246bc2707bdf73b" have entirely different histories.

3 changed files with 10 additions and 17 deletions

View File

@ -7,13 +7,6 @@
![App Preview](./images/final-preview.gif)
**Live Demo:** https://demo.taufan.dev/webgl-letters/
**Source Code:** https://git.taufan.dev/cg/webgl-letters/
> [!NOTE]
> Source code will be made public no earlier than Mon, 2024-09-22
## What I came up with
I figured that the requirements itself are pretty lax; as long as

View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebGL Letters</title>
<title>Vite + TS</title>
</head>
<body>
<canvas id="canvas" width="1200px" height="600px">

View File

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