Blame simple/imgfilters/bw.c

14902d
14902d
#include <math.h></math.h>
14902d
#include <time.h></time.h>
14902d
#include <ctype.h></ctype.h>
14902d
#include <stdio.h></stdio.h>
14902d
#include <stdlib.h></stdlib.h>
14902d
#include <string.h></string.h>
14902d
14902d
#ifndef TRUE
14902d
#define TRUE 1
14902d
#endif
14902d
14902d
#ifndef FALSE
14902d
#define FALSE 0
14902d
#endif
14902d
14902d
#ifndef PI
14902d
#define PI 3.14159265358979323846
14902d
#endif
14902d
14902d
14902d
double randomFloat()
14902d
 { return (double)rand()/RAND_MAX; }
14902d
14902d
14902d
#include "arg.inc.c"
14902d
#include "img.inc.c"
14902d
#include "img.ldr.inc.c"
14902d
#include "filter.bw.inc.c"
14902d
14902d
14902d
int main(int argc, char **argv) {
14902d
  srand(time(NULL));
14902d
  return !bwGenerate(argc - 1, argv + 1);
14902d
}
14902d