Compare commits

..

No commits in common. "c71e3b53b7e97543095da4488926d9b35236efd8" and "427331806315cf9b6db9d90ab15b5254e5131ffb" have entirely different histories.

2 changed files with 3 additions and 10 deletions

View File

@ -32,8 +32,8 @@ for (y=1; y<fimg->height; y++) {
fx = (float)x / (float)fimg->width; fx = (float)x / (float)fimg->width;
fimg_plot_rgb(fimg, x, y, fimg_plot_rgb(fimg, x, y,
M*(cos(fx*K)+1.2), M*(cos(fx*K)+1.2),
M*(sin(fy*K)+1.4), M*(cos(fy*K)+1.2),
M*(cos(fx*fy)+1.6)); M*(cos(fx*fy)+1.2));
} }
} }
return 0; return 0;

View File

@ -57,20 +57,13 @@ FloatImg fimg;
int foo; int foo;
fimg_create(&fimg, 512, 512, FIMG_TYPE_RGB); fimg_create(&fimg, 512, 512, FIMG_TYPE_RGB);
fimg_draw_something(&fimg);
/* XXX
for (foo=0; foo<512; foo++) { for (foo=0; foo<512; foo++) {
fimg_plot_rgb(&fimg, foo, foo, 17000.0, 8000.0, 11111.1); fimg_plot_rgb(&fimg, foo, foo, 17000.0, 8000.0, 11111.1);
} }
*/
foo = fimg_save_as_pnm(&fimg, "quux.pnm", 0); fimg_save_as_pnm(&fimg, "quux.pnm", 0);
fprintf(stderr, "save as pnm -> %d\n", foo);
foo = fimg_save_as_png(&fimg, fname, 0); foo = fimg_save_as_png(&fimg, fname, 0);
fprintf(stderr, "save as png -> %d\n", foo);
return 0; return 0;
} }