From 026fba6add33545e313eb6cd753c3f35c5298e28 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Mon, 6 Nov 2023 23:08:43 +0100 Subject: [PATCH] (for the fun) arrows erased on origin and opposite corner --- src/graphics/graphics.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index be07b1f..c2c0f9f 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -831,8 +831,10 @@ void main_test_graphics (void) for (int u = 0; u < min_x; u++) for (int v = 0; v < min_y; v++) for (int w = 0; w < min_z; w++) - if (u + v + w < mxyz) + if (u + v + w < mxyz) { arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, i, u, v, w, 0); + arrows_nb = set_arrow (arrows_ptr, arrows_nb, space_X, space_Y, space_Z, 0, i, space_X - u, space_Y - v, space_Z - w, 0); + } printf("\n+ effacement des flèches dans l'angle-origine\ <=> contrôle graphique de la fonction erase_arrow()\n");