forked from tTh/FloatImg
mkfimg gradient now use the cli parameter
This commit is contained in:
parent
4f27e491b1
commit
b7c32d24f3
@ -75,7 +75,7 @@ int foo, cc;
|
|||||||
|
|
||||||
puts("Usage:\tmkfimg [options] quux.fimg width height");
|
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-L\tlist howto make a pic");
|
||||||
puts("\t-m\tadd faked metadata");
|
puts("\t-m\tadd faked metadata");
|
||||||
|
|
||||||
@ -172,8 +172,8 @@ switch(type) {
|
|||||||
case T_DRAND48: fimg_drand48(&fimg, fvalue); break;
|
case T_DRAND48: fimg_drand48(&fimg, fvalue); break;
|
||||||
case T_GRAY: fimg_rgb_constant(&fimg, fvalue, fvalue, fvalue);
|
case T_GRAY: fimg_rgb_constant(&fimg, fvalue, fvalue, fvalue);
|
||||||
break;
|
break;
|
||||||
case T_HDEG_A: fimg_hdeg_a(&fimg, 1.0); break;
|
case T_HDEG_A: fimg_hdeg_a(&fimg, fvalue); break;
|
||||||
case T_VDEG_A: fimg_vdeg_a(&fimg, 1.0); break;
|
case T_VDEG_A: fimg_vdeg_a(&fimg, fvalue); break;
|
||||||
case T_TPAT0: fimg_test_pattern(&fimg, 0, fvalue); break;
|
case T_TPAT0: fimg_test_pattern(&fimg, 0, fvalue); break;
|
||||||
case T_MIRCOL1: fimg_mircol_1(&fimg, fvalue); break;
|
case T_MIRCOL1: fimg_mircol_1(&fimg, fvalue); break;
|
||||||
case T_BLOUP: fimg_draw_something(&fimg); break;
|
case T_BLOUP: fimg_draw_something(&fimg); break;
|
||||||
@ -181,6 +181,8 @@ switch(type) {
|
|||||||
case -1: exit(1);
|
case -1: exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (verbosity > 1) fprintf(stderr, "%s: end of switch\n", __func__);
|
if (verbosity > 1) fprintf(stderr, "%s: end of switch\n", __func__);
|
||||||
|
|
||||||
/* NO ERROR CONTROL ? WTF ? */
|
/* NO ERROR CONTROL ? WTF ? */
|
||||||
|
Loading…
Reference in New Issue
Block a user