more experiments
This commit is contained in:
@@ -16,6 +16,28 @@
|
||||
|
||||
extern int verbosity;
|
||||
|
||||
/* -------------------------------------------------------------- */
|
||||
/* nouveau du 32 decembre 2020, endless september */
|
||||
int do_something(FloatImg *pimg, int notused)
|
||||
{
|
||||
int ypos, idx, pos, sline;
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, ">>> %s ( %p %d )\n", __func__, pimg, notused);
|
||||
#endif
|
||||
|
||||
ypos = rand() % pimg->width;
|
||||
|
||||
for (idx=0; idx < pimg->height; idx++) {
|
||||
sline = idx * pimg->width;
|
||||
pos = sline + ypos;
|
||||
// fprintf(stderr, "%6d %6d\n", idx, sline);
|
||||
pimg->R[pos] = pimg->G[pos];
|
||||
pimg->B[pos] = pimg->G[pos];
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* -------------------------------------------------------------- */
|
||||
int kill_a_random_line(FloatImg *pvictime, float fval, int bits)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user