~amavect/pal

27a50c78a1665517af0ae022212c524d890a42ec — amavect 4 years ago c8bae86
init with c64 colors
1 files changed, 23 insertions(+), 0 deletions(-)

M pal.c
M pal.c => pal.c +23 -0
@@ 9,6 9,25 @@
#define DX 64
#define DY 64

int c64[] = {		/* c64 color palette */
	0x000000FF,
	0xFFFFFFFF,
	0x68372BFF,
	0x70A4B2FF,
	0x6F3D86FF,
	0x588D43FF,
	0x352879FF,
	0xB8C76FFF,
	0x6F4F25FF,
	0x433900FF,
	0x9A6759FF,
	0x444444FF,
	0x6C6C6CFF,
	0x9AD284FF,
	0x6C5EB5FF,
	0x959595FF,
};

int cflag;
int pflag;
int iflag;


@@ 256,6 275,10 @@ threadmain(int argc, char **argv)
		readpalfile(argv[0]);
	}else if(argc > 1){
		usage();
	}else{
		int i;
		for(i = 0; i < nelem(c64); i++)
			addcolor(c64[i], ncolors);
	}
	
	if(initdraw(nil, nil, argv0) < 0)