183184185186187188189190191192193
if (this.shapes[selectedShapeIndex].isInside(x, y)) // the inside is red gl.glColor3f(1.0f, 0.0f, 0.0f); else // the outside is gray gl.glColor3f(0.0f, 0.0f, 0.0f); gl.glVertex2f(x, y); } } gl.glEnd(); // pop the current color