add a drand48 row

This commit is contained in:
tTh 2022-10-30 22:03:34 +01:00
parent 0e77fdeb7a
commit 5d18cb6c3f

View File

@ -69,6 +69,15 @@ for (x=0; x<fimg->width; x++) {
}
}
k = (fimg->height / 4) + 140;
for (x=0; x<fimg->width; x++) {
for (y=0; y<20; y++) {
val = drand48() * dval;
fimg_plot_rgb(fimg, x, k+y, val, val, val);
fimg_plot_rgb(fimg, x, k+y+20, dval-val, dval-val, dval-val);
}
}
return 0;
}
/* --------------------------------------------------------------------- */