not ready for prime time
This commit is contained in:
15
Fonderie/t.c
15
Fonderie/t.c
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../floatimg.h"
|
||||
#include "glitches.h"
|
||||
@@ -13,8 +14,8 @@
|
||||
int verbosity;
|
||||
|
||||
#define PNG "out.png"
|
||||
#define W 512
|
||||
#define H 256
|
||||
#define W 800
|
||||
#define H 600
|
||||
#define LMAX 233.333
|
||||
#define TIMER 1
|
||||
|
||||
@@ -34,15 +35,17 @@ if (foo) {
|
||||
fprintf(stderr, "err %d create image\n", foo);
|
||||
exit(1);
|
||||
}
|
||||
fimg_vdeg_a(&image, LMAX);
|
||||
|
||||
srand(getpid());
|
||||
debut = fimg_timer_set(TIMER);
|
||||
|
||||
for (iter=0; iter<64; iter++) {
|
||||
for (iter=0; iter<72; iter++) {
|
||||
|
||||
for (bloub=0; bloub<5; bloub++) {
|
||||
fimg_vdeg_a(&image, LMAX);
|
||||
|
||||
for (bloub=0; bloub<7; bloub++) {
|
||||
xloc = rand() % W;
|
||||
omega = (float)(0.1 + drand48()*0.8) * 0.5;
|
||||
omega = (float)(0.1 + drand48()*0.6) * 0.4;
|
||||
foo = vertical_singlitch(&image, xloc, LMAX,
|
||||
omega, (float)iter);
|
||||
if (foo) abort();
|
||||
|
||||
Reference in New Issue
Block a user