shithub: oledsaver

ref: b545233a9b54502f276f70a167f2b7f71c54161f
dir: /bitart.h/

View raw version
extern int h, w;
extern char *path;
extern long ms;

typedef int drawfunc(int x, int x);
typedef Memimage* iterfunc(drawfunc, Memimage*);

int
ob0(int x, int y);

int
ob1(int x, int y);

int
ob2(int x, int y);

int
ob3(int x, int y);

int
ob4(int x, int y);

int
ob5(int x, int y);

int
drand(int, int);

Memimage*
topdown(drawfunc df, Memimage *img);

Memimage*
bottomup(drawfunc df, Memimage *img);

Memimage*
leftright(drawfunc df, Memimage *img);

Memimage*
rightleft(drawfunc df, Memimage *img);

Memimage*
writeuncompressed(int fd, Memimage *m);