z=polysolve2(g,-12,12,1e-5);
if (z>11.99) 
	{screencolor[0][i][j]=0;screencolor[1][i][j]=0;}
else 
	{s1=sqrt(gx*gx+gy*gy+gz*gz);
	inpr1=-(gx)/s1;
	inpr2=-(gy)/s1;
	inpr3=-(gz)/s1;
	kl1=7+7*inpr1;
	kl2=7+7*inpr2;
	#if dither==0
	screencolor[0][i][j]=(int)kl1;
	screencolor[1][i][j]=(int)kl2;
	#else 
	screencolor[0][i][j]=(int)(kl1+(rand() % 1000)/1000.0);
	screencolor[1][i][j]=(int)(kl2+(rand() % 1000)/1000.0);
	#endif
	}
}}


  argc = OpenDisplay(argc, argv);
  if (argc == 0)                   /* woops, couldn't get started */
    exit(5);


  w[0] = MakeButton("Quit", quit, NULL);
  w[1] = MakeDrawArea(SIZE,SIZE,teken_troep,screencolor);
  SetWidgetPos(w[1], PLACE_UNDER, w[0], NO_CARE, NULL);

  ShowDisplay();
  GetStandardColors();


  MainLoop();   /* off we go! */
}
