/* separate.c; Epson color seperator - (c) 1987 DJH
Use this program with files grabbed with PARSNAG to perform color
separations on dithered color prints. Separate claims only to work on files
created using Mike Paul's JX-80.12a printer driver. Quick hack; assumes all
Epson cmds are 2-bytes except for the SET_GRAPHICS cmd, which is always
preceded by a SET_COLOR.
*/
#define ESC 0x1b
#define SET_COLOR 0x72
#define SET_GRAPHICS 0x4c
main(argc,argv)
int argc;
char *argv[];
{
FILE *input,*output;
unsigned char buf,color;
short i;
if (argc<3) { puts("Separate color[0,1,2,4]