Question: hello can you edit the following code to be like this and have multiple copies like this photo with the same colors please: This is
hello can you edit the following code to be like this and have multiple copies like this photo with the same colors 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();
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
