Question: hello can you edit the following code to be like this and have multiple copies like this photo each copy have different color like the

hello can you edit the following code to be like this and have multiple copies like this photo each copy have different color like the photo please:
This is the code that draw just one copy of the shape :
the headers are
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_TRIANGLE_FAN);
glVertex2f(0.0, 0.0);
for (int i = 0; i
{
float angle = 2.0 * M_PI * i / NUM_POINTS;
glVertex2f(0.25 * cos(angle), 0.25 * sin(angle) + 0.5);
}
glEnd();
glFlush();
 hello can you edit the following code to be like this
E

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!