glBegin(GL_TRIANGLES);
//Up
glColor4ub(R2, G2, B2, 64); glTexCoord2f(0.5, 1.0); glVertex3d(0.0, 1.414, 0.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(0.0, 0.0); glVertex3d(-1.0, 0.0, 1.0);
glColor4ub(0, 0, 0, 64); glTexCoord2f(0.5, 0.0); glVertex3d(1.0, 0.0, 1.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(0.5, 1.0); glVertex3d(0.0, 1.414, 0.0);
glColor4ub(0, 0, 0, 64); glTexCoord2f(0.5, 0.0); glVertex3d(1.0, 0.0, 1.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(1.0, 0.0); glVertex3d(1.0, 0.0, -1.0);
glColor4ub(R2, G2, B2, 64); glTexCoord2f(0.5, 1.0); glVertex3d(0.0, 1.414, 0.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(0.0, 0.0); glVertex3d(1.0, 0.0, -1.0);
glColor4ub(0, 0, 0, 64); glTexCoord2f(0.5, 0.0); glVertex3d(-1.0, 0.0, -1.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(0.5, 1.0); glVertex3d(0.0, 1.414, 0.0);
glColor4ub(0, 0, 0, 64); glTexCoord2f(0.5, 0.0); glVertex3d(-1.0, 0.0, -1.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(1.0, 0.0); glVertex3d(-1.0, 0.0, 1.0);
//Down
glColor4ub(R2, G2, B2, 64); glTexCoord2f(0.5, 1.0); glVertex3d(0.0, -1.414, 0.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(0.0, 0.0); glVertex3d(1.0, 0.0, 1.0);
glColor4ub(0, 0, 0, 64); glTexCoord2f(0.5, 0.0); glVertex3d(-1.0, 0.0, 1.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(0.5, 1.0); glVertex3d(0.0, -1.414, 0.0);
glColor4ub(0, 0, 0, 64); glTexCoord2f(0.5, 0.0); glVertex3d(-1.0, 0.0, 1.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(1.0, 0.0); glVertex3d(-1.0, 0.0, -1.0);
glColor4ub(R2, G2, B2, 64); glTexCoord2f(0.5, 1.0); glVertex3d(0.0, -1.414, 0.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(0.0, 0.0); glVertex3d(-1.0, 0.0, -1.0);
glColor4ub(0, 0, 0, 64); glTexCoord2f(0.5, 0.0); glVertex3d(1.0, 0.0, -1.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(0.5, 1.0); glVertex3d(0.0, -1.414, 0.0);
glColor4ub(0, 0, 0, 64); glTexCoord2f(0.5, 0.0); glVertex3d(1.0, 0.0, -1.0);
glColor4ub(R1, G1, B1, 64); glTexCoord2f(1.0, 0.0); glVertex3d(1.0, 0.0, 1.0);
glEnd();