shithub: slug

ref: fc6a696cb43ffd4dd373118bdae89a4053341414
dir: /a.h/

View raw version
#include <u.h>
#include <libc.h>
#include <thread.h>
#include <draw.h>
#include <mouse.h>
#include <keyboard.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>

typedef struct Color Color;

struct Color
{
	ulong color;
	Image *i;
};

void	resize(lua_State*, int, int);

void	drawcanvas(void);
void	initstate(void);
void	registerfuncs(lua_State*);

Image*	getcolor(int);

extern int drawing;
extern Image* canvas;
extern int width;
extern int height;