/**************************************************************************
 *									  *
 * 		 Copyright (C) 1983, Silicon Graphics, Inc.		  *
 *									  *
 *  These coded instructions, statements, and computer programs  contain  *
 *  unpublished  proprietary  information of Silicon Graphics, Inc., and  *
 *  are protected by Federal copyright law.  They  may  not be disclosed  *
 *  to  third  parties  or copied or duplicated in any form, in whole or  *
 *  in part, without the prior written consent of Silicon Graphics, Inc.  *
 *									  *
 **************************************************************************/

#include "gl.h"
#define even(A) (!(A%2))

main()
{
	int x, y, j;
	ginit();
	cursoff();
	color(BLACK);
	clear();
	color(BLUE);

	x = XMAXSCREEN/2;
	y = YMAXSCREEN/2;
	/* move to center of the screen */
	move2i(x,y);
	for (j=1; j<500; j=j+5) {
		if (even(j)) x = x - j;
		else x = x + j;
		draw2i(x,y);
		if (even(j)) y = y - j;
		else y = y + j;
		draw2i(x,y);
	}
	gexit();
}

