From 4de675fb599e62cc5a93378246ee5eb2d203e1f9 Mon Sep 17 00:00:00 2001 From: Theo Date: Thu, 24 Oct 2024 09:46:38 +0200 Subject: [PATCH] gpt2 --- index.html | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++--- main.js | 7 +++ 2 files changed, 139 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 1d804e1..aa9f968 100644 --- a/index.html +++ b/index.html @@ -3,17 +3,141 @@ - WebGL Plot + WebGL Line Strip - - + + + diff --git a/main.js b/main.js index ff40eeb..fb79e17 100644 --- a/main.js +++ b/main.js @@ -112,10 +112,13 @@ function display(gl) { if (mode_affichage === HORIZONTAL) { for (let i = 0; i < nc; i++) { + console.log(i); let haut = map(0, nc, i, 1.0, -1.0); let bas = map(0, nc, i + 1, 1.0, -1.0); if (type_dessin === LIGNE || type_dessin === LIGNE_AXES) { + console.log("drawCurve"); drawCurve(gl, i, -1.0, haut, 1.0, bas); + console.log("drawCurve"); } else if (type_dessin === HISTOGRAMME) { drawHistogram(gl, i, -1.0, haut, 1.0, bas); } @@ -141,6 +144,10 @@ function main() { if (!gl) return; loadFile(); // Load example data + + console.log(courbe); + console.log(nc); + display(gl); // Render the curves }