mkfimg gradient now use the cli parameter

This commit is contained in:
tTh 2024-05-01 21:42:55 +02:00
parent 4f27e491b1
commit b7c32d24f3
1 changed files with 5 additions and 3 deletions

View File

@ -75,7 +75,7 @@ int foo, cc;
puts("Usage:\tmkfimg [options] quux.fimg width height");
puts("\t-k N.N\tgive a float parameter");
puts("\t-k N.N\tgive a float multiplier");
puts("\t-L\tlist howto make a pic");
puts("\t-m\tadd faked metadata");
@ -172,8 +172,8 @@ switch(type) {
case T_DRAND48: fimg_drand48(&fimg, fvalue); break;
case T_GRAY: fimg_rgb_constant(&fimg, fvalue, fvalue, fvalue);
break;
case T_HDEG_A: fimg_hdeg_a(&fimg, 1.0); break;
case T_VDEG_A: fimg_vdeg_a(&fimg, 1.0); break;
case T_HDEG_A: fimg_hdeg_a(&fimg, fvalue); break;
case T_VDEG_A: fimg_vdeg_a(&fimg, fvalue); break;
case T_TPAT0: fimg_test_pattern(&fimg, 0, fvalue); break;
case T_MIRCOL1: fimg_mircol_1(&fimg, fvalue); break;
case T_BLOUP: fimg_draw_something(&fimg); break;
@ -181,6 +181,8 @@ switch(type) {
case -1: exit(1);
}
if (verbosity > 1) fprintf(stderr, "%s: end of switch\n", __func__);
/* NO ERROR CONTROL ? WTF ? */