From fdf5cc94623bd0f4f43531cb69cf35fa2659ec88 Mon Sep 17 00:00:00 2001 From: tth Date: Tue, 31 Dec 2019 12:02:37 +0100 Subject: [PATCH] nothing important --- funcs/misc-plots.c | 4 ++-- funcs/t.c | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/funcs/misc-plots.c b/funcs/misc-plots.c index 8aa3454a..ae730e4e 100644 --- a/funcs/misc-plots.c +++ b/funcs/misc-plots.c @@ -32,8 +32,8 @@ for (y=1; yheight; y++) { fx = (float)x / (float)fimg->width; fimg_plot_rgb(fimg, x, y, M*(cos(fx*K)+1.2), - M*(cos(fy*K)+1.2), - M*(cos(fx*fy)+1.2)); + M*(sin(fy*K)+1.4), + M*(cos(fx*fy)+1.6)); } } return 0; diff --git a/funcs/t.c b/funcs/t.c index d4ab3f27..019b7bb4 100644 --- a/funcs/t.c +++ b/funcs/t.c @@ -57,13 +57,20 @@ FloatImg fimg; int foo; fimg_create(&fimg, 512, 512, FIMG_TYPE_RGB); + +fimg_draw_something(&fimg); + +/* XXX for (foo=0; foo<512; foo++) { fimg_plot_rgb(&fimg, foo, foo, 17000.0, 8000.0, 11111.1); } +*/ -fimg_save_as_pnm(&fimg, "quux.pnm", 0); +foo = fimg_save_as_pnm(&fimg, "quux.pnm", 0); +fprintf(stderr, "save as pnm -> %d\n", foo); foo = fimg_save_as_png(&fimg, fname, 0); +fprintf(stderr, "save as png -> %d\n", foo); return 0; }