diff options
author | Mattias Andrée <maandree@kth.se> | 2023-02-08 22:32:50 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-02-08 22:32:50 +0100 |
commit | 1c7c8fb6d0caca4a5178414cf6f1dbb35570d0c5 (patch) | |
tree | d78cdae8038bfe643668a9ab5221f30649363ec2 /common.h | |
parent | Fix warnings and infinite loop bug (diff) | |
download | librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-1c7c8fb6d0caca4a5178414cf6f1dbb35570d0c5.tar.gz librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-1c7c8fb6d0caca4a5178414cf6f1dbb35570d0c5.tar.bz2 librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-1c7c8fb6d0caca4a5178414cf6f1dbb35570d0c5.tar.xz |
Test rtgrpblib_draw_linear_bezier
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -159,4 +159,25 @@ intolerant_eq(double a, double b) }\ } while (0) +# if 0 +static void +print_raster(const RASTER *r) { + size_t y, x; + fprintf(stderr, "\nOutline (area)\n"); + for (y = 0; y < r->height; y++) { + for (x = 0; x < r->width; x++) + fprintf(stderr, r->cells[y * r->width + x].cell_coverage ? "%+.4lf " : " 0 ", + r->cells[y * r->width + x].cell_coverage); + printf("\n"); + } + fprintf(stderr, "\nOutline (shadow)\n"); + for (y = 0; y < r->height; y++) { + for (x = 0; x < r->width; x++) + fprintf(stderr, r->cells[y * r->width + x].opposite_coverage ? "%+.4lf " : " 0 ", + r->cells[y * r->width + x].opposite_coverage); + printf("\n"); + } +} +# endif + #endif |