diff --git a/funcs/misc-plots.c b/funcs/misc-plots.c index 9a20991..beebfe8 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); }