From be3338eb5f211a315f79756f9d2fe239ddb418b9 Mon Sep 17 00:00:00 2001 From: tth Date: Fri, 24 Jul 2020 13:45:17 +0200 Subject: [PATCH] killed a bug --- funcs/misc-plots.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/funcs/misc-plots.c b/funcs/misc-plots.c index 9a209914..beebfe83 100644 --- a/funcs/misc-plots.c +++ b/funcs/misc-plots.c @@ -51,8 +51,9 @@ for (x=0; xwidth; x++) { val = ((double)x / (double)fimg->width) * dval; for (y=0; y<20; y++) { fimg_plot_rgb(fimg, x, k+y, val, val, val); - fimg_plot_rgb(fimg, x, k+y+20, 1-val, 1-val, 1-val); + fimg_plot_rgb(fimg, x, k+y+20, dval-val, dval-val, dval-val); } + // fprintf(stderr, " %6d %f\n", x, val); }