diff --git a/src/graphics/arrows.c b/src/graphics/arrows.c index 9d5c9aa..cc3e4f6 100644 --- a/src/graphics/arrows.c +++ b/src/graphics/arrows.c @@ -64,15 +64,15 @@ int write_one_arrow_vertex (int space_X_int, int space_Y_int, int space_Z_int, break; case ZENITH: graphics_write_vertex (vx, vy - (site % 2 - 1) * (1 / max) + (site % 2 - 1) * arrow_tip_padding, vz, print); - graphics_write_color(0.0f, 1.0f, 0.0f); + graphics_write_color(0.0f, 0.9f, 0.0f); break; case NADIR: graphics_write_vertex (vx, vy - (site % 2) * (1 / max) + (site % 2) * arrow_tip_padding, vz, print); - graphics_write_color(0.7f, 0.2f, 0.2f); + graphics_write_color(0.7f, 0.3f, 0.9f); break; case SOUTH: graphics_write_vertex (vx, vy, vz + (site % 2 - 1) * (1 / max) - (site % 2 - 1) * arrow_tip_padding, print); - graphics_write_color(0.3f, 0.1f, 0.6f); + graphics_write_color(0.0f, 0.4f, 1.0f); break; case NORTH: graphics_write_vertex (vx, vy, vz + (site % 2) * (1 / max) - (site % 2) * arrow_tip_padding, print); diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index a9ad608..9e4d7eb 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -903,9 +903,10 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void) 0,//rand() % space_Y, // y 0);//rand() % space_Z); // z - int address = 3; + int address = 0; - if (1) printf("buffer_lines_0_arrow = %d address = %d buffer_lines_size = %d >>>", buffer_lines_0_arrow, address, buffer_lines_size); + if (1) printf("buffer_lines_0_arrow = %d address = %d buffer_lines_size = %d >>>",\ + buffer_lines_0_arrow, address, buffer_lines_size); buffer_lines_origin [(long) buffer_lines_0_arrow + address * 2 + 0] = buffer_lines_origin[(long) buffer_lines_size - 2]; buffer_lines_origin [(long) buffer_lines_0_arrow + address * 2 + 1] = buffer_lines_origin[(long) buffer_lines_size - 1]; @@ -934,6 +935,34 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void) + + + + + printf("buffer_lines_0_arrow = %d\n", buffer_lines_0_arrow); + + for (long h = buffer_lines_0_arrow - 6; h < buffer_lines_size + 6; h++) { + if (h == buffer_lines_0_arrow) printf("\n"); + if (h == buffer_lines_0_arrow + 6) printf("\n"); + if (h % 2 == 0) printf("\n"); + printf("%2d ", buffer_lines_origin [h]); + } + printf("\n"); + + for (long a = buffer_vertex_0_arrow - 3; a < buffer_vertex_size; a++) { + if (a % 6 == 0) printf("\n"); + if (a % 3 == 0) printf("\n"); + printf("%5.2f ", buffer_vertex_origin [a]); + } + printf("\n"); + + + + + + + + /* arrows_nb = set_arrow (arrows_ptr, arrows_nb, space_X, space_Y, space_Z, */ /* 0,//rand() % arbitrary + 1, // load / weight */ /* 0,//rand() % 6, // site, */