|
|
|
@ -18,14 +18,23 @@ int essai_sfx0(char *infile)
@@ -18,14 +18,23 @@ int essai_sfx0(char *infile)
|
|
|
|
|
FloatImg fimg; |
|
|
|
|
int foo; |
|
|
|
|
|
|
|
|
|
fimg_create(&fimg, 512, 512, FIMG_TYPE_RGB); |
|
|
|
|
if (NULL != infile) { |
|
|
|
|
fprintf(stderr, "loading %s\n", infile); |
|
|
|
|
fimg_create_from_dump(infile, &fimg); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
fimg_create(&fimg, 512, 512, FIMG_TYPE_RGB); |
|
|
|
|
fimg_draw_something(&fimg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fimg_draw_something(&fimg); |
|
|
|
|
foo = fimg_save_as_pnm(&fimg, "something.pnm", 0); |
|
|
|
|
|
|
|
|
|
foo = fimg_killcolors_a(&fimg, 0.0); |
|
|
|
|
foo = fimg_save_as_pnm(&fimg, "colorskilled-a.pnm", 0); |
|
|
|
|
|
|
|
|
|
foo = fimg_killcolors_b(&fimg, 0.0); |
|
|
|
|
foo = fimg_save_as_pnm(&fimg, "colorskilled-b.pnm", 0); |
|
|
|
|
|
|
|
|
|
foo = fimg_save_as_pnm(&fimg, "colorskilled.pnm", 0); |
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
@ -125,7 +134,7 @@ int foo;
@@ -125,7 +134,7 @@ int foo;
|
|
|
|
|
|
|
|
|
|
puts("++++++++++++++++++++++++++++++++"); |
|
|
|
|
|
|
|
|
|
foo = essai_sfx0(NULL); |
|
|
|
|
foo = essai_sfx0("03384.fimg"); |
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|