void display() { const float numcolors=8; const float cRed[]={0.0,1.0,1.0,0.0,0.0,0.0,1.0,1.0}; const float cGreen[]={0.0,1.0,0.0,0.0,1.0,1.0,0.0,1.0}; const float cBlue[]={0.0,1.0,0.0,1.0,0.0,1.0,1.0,0.0}; int i,j,color; glClear(GL_COLOR_BUFFER_BIT); /* clear the screen */ for (color=0; color < numcolors; color ++) { glColor3f(cRed[color],cGreen[color],cBlue[color]); /* set drawing color to ith color */ for (i=0;i