forked from tTh/FloatImg
add a drand48 row
This commit is contained in:
parent
0e77fdeb7a
commit
5d18cb6c3f
@ -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;
|
return 0;
|
||||||
}
|
}
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user